Classes
Switch
Switch
Represents a switch component.
Summary
Constructors
Properties
152 properties inherited from View
Click to expand
Constructors
Properties
android
defined in @nativescript/core/ui/switch/index.d.ts:14:1
Gets the native [android widget](http://developer.android.com/reference/android/widget/Switch.html) that represents the user interface for this component. Valid only when running on Android OS.
checked
defined in @nativescript/core/ui/switch/index.d.ts:24:1
Gets or sets if a switch is checked or not.
ios
defined in @nativescript/core/ui/switch/index.d.ts:19:1
Gets the native iOS [UISwitch](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISwitch_Class/) that represents the user interface for this component. Valid only when running on iOS.
offBackgroundColor
offBackgroundColor: Color
defined in @nativescript/core/ui/switch/index.d.ts:29:1
Gets or sets the background color of the Switch when it is turned off.
checkedChangeEvent
Static
defined in @nativescript/core/ui/switch/index.d.ts:9:15