Share via


UISwitch.SetState(Boolean, Boolean) Method

Definition

[Foundation.Export("setOn:animated:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetState(bool newState, bool animated);
[<Foundation.Export("setOn:animated:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetState : bool * bool -> unit
override this.SetState : bool * bool -> unit

Parameters

newState
Boolean
animated
Boolean
Attributes

Applies to