We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 173d352 commit ccc4792Copy full SHA for ccc4792
ui/switch/switch.android.ts
@@ -9,6 +9,14 @@ export class Switch extends view.View {
9
constructor() {
10
super();
11
this._android = new android.widget.Switch(application.android.currentContext);
12
+
13
+ var that = this;
14
+ this._android.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({
15
+ onCheckedChanged: function (sender, isChecked) {
16
+ that.updateTwoWayBinding(Switch.checkedProperty, sender.isChecked());
17
+ that.setProperty(Switch.checkedProperty, sender.isChecked());
18
+ }
19
+ }));
20
}
21
22
get android(): android.widget.Switch {
0 commit comments