UIKit.UISwitch.On Property
This property returns if the state of the switch is on or off.

Syntax

[get: Foundation.Export("isOn")]
[set: Foundation.Export("setOn:")]
public virtual bool On { get; set; }

Value

Remarks

Setting the property changes the state of the switch without an animation.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0