@nativescript/core
Version:
A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.
15 lines (14 loc) • 492 B
TypeScript
import { SwitchBase } from './switch-common';
export * from './switch-common';
export declare class Switch extends SwitchBase {
nativeViewProtected: UISwitch;
private _handler;
constructor();
createNativeView(): UISwitch;
initNativeView(): void;
disposeNativeView(): void;
private setNativeBackgroundColor;
_onCheckedPropertyChanged(newValue: boolean): void;
get ios(): UISwitch;
onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
}