public bool ShowSplashScreen(UIInterfaceOrientation orientation) { if(this.splashView == null) { #if DEBUG log ("Showing SplashScreen..."); #endif splashView = new SplashScreenView(orientation); // Show splash screen as top view this.View.AddSubview(splashView); this.View.BringSubviewToFront(splashView); return true; } else { #if DEBUG log ("Not able to show the splash screen. Reason: it is already shown."); #endif return false; } }
public bool DismissSplashScreen() { #if DEBUG log ("Dismissing SplashScreen..."); #endif if(splashView != null) { splashView.RemoveFromSuperview(); splashView.Dispose(); splashView = null; #if DEBUG log ("Splashscreen dismissed."); #endif return true; } #if DEBUG log ("Not able to dismiss the splash screen. Reason: it is not shown."); #endif return false; }