AutoWait.PlaybackViewController.toggleAutomaticWaiting C# (CSharp) Méthode

toggleAutomaticWaiting() private méthode

private toggleAutomaticWaiting ( UISwitch sender ) : void
sender UISwitch
Résultat void
		void toggleAutomaticWaiting (UISwitch sender)
		{
			// Check for the new value of the switch and update AVPlayer property and user defaults
			if(Player != null)
				Player.AutomaticallyWaitsToMinimizeStalling = AutomaticWaitingSwitch.On;
			NSUserDefaults.StandardUserDefaults.SetBool (AutomaticWaitingSwitch.On, "disableAutomaticWaiting");
		}