AutoWait.PlaybackViewController.toggleAutomaticWaiting C# (CSharp) Method

toggleAutomaticWaiting() private method

private toggleAutomaticWaiting ( UISwitch sender ) : void
sender UISwitch
return 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");
		}