Set(Boolean) Method
Sets the state of the object.
Remarks
For Android toggles (where Class="toggleButton"), use Set(string) giving the state to set as the parameter.
C# Syntax
void Set( 
   bool state
)

Parameters

state
Indicates whether this toggle will be checked.