MobileSwitch
A switch used for a single binary choice on a mobile app. Learn more.
Additional information about this section
Store values associated with an object
- value
Sets or gets the value of the switch state.
- id
Gets the mobile element's ID.
- parent
Gets the mobile element's parent element.
- type
Gets the mobile element's type.
- enabled
Indicates if the mobile element is enabled or disabled.
- collapsed
Indicates if the element is collapsed or expanded.
- hidden
Indicates if the element is visible or hidden.
- isVisible
Indicates if the element is actually visible.
The endpoints exposed by this API
Disables the mobile element and sets its enabled property to false.
Enables the mobile element and sets its enabled property to true.
Collapses the element and sets its collapsed property to true.
Expands the element and sets its collapsed property to false.
Hides the element and sets its hidden property to true.
Shows the element and sets its hidden property to false.