MonoMobile.Views.ProgressHud.Hide C# (CSharp) Method

Hide() public method

public Hide ( bool animated ) : void
animated bool
return void
		public void Hide(bool animated)
		{
			_UseAnimation = animated;
			
			// If the minShow time is set, calculate how long the hud was shown,
			// and pospone the hiding operation if necessary
			if (MinimumShowTime > 0.0 && _ShowStarted.HasValue)
			{
				double interv = (DateTime.Now - _ShowStarted.Value).TotalSeconds;
				if (interv < MinimumShowTime)
				{
					_MinShowTimer = NSTimer.CreateScheduledTimer((MinimumShowTime - interv), HandleMinShowTimer);
					return;
				}
			}
			
			// ... otherwise hide the HUD immediately
			HideUsingAnimation(_UseAnimation);
		}