forked from NativeScript/NativeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswitch.d.ts
More file actions
33 lines (28 loc) · 1.17 KB
/
switch.d.ts
File metadata and controls
33 lines (28 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* Contains the Switch class, which represents a standard switch component.
*/
declare module "ui/switch" {
import view = require("ui/core/view");
import dependencyObservable = require("ui/core/dependency-observable");
/**
* Represents a switch component.
*/
export class Switch extends view.View {
/**
* Represents the observable property backing the checked property of each Switch instance.
*/
public static checkedProperty: dependencyObservable.Property;
/**
* 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.
*/
android: any /* android.widget.Switch */;
/**
* 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.
*/
ios: any /* UISwitch */;
/**
* Gets or sets if a switch is checked or not.
*/
checked: boolean;
}
}