@nativescript/core
Version:
A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.
27 lines (26 loc) • 1.26 kB
TypeScript
import { SwitchBase, checkedProperty, offBackgroundColorProperty } from './switch-common';
import { colorProperty, backgroundColorProperty, backgroundInternalProperty } from '../styling/style-properties';
import { Color } from '../../color';
export * from './switch-common';
export declare class Switch extends SwitchBase {
[checkedProperty.getDefault]: () => boolean;
[checkedProperty.setNative]: (value: boolean) => void;
[colorProperty.getDefault]: () => UIColor;
[colorProperty.setNative]: (value: UIColor | Color) => void;
[backgroundColorProperty.getDefault]: () => UIColor;
[backgroundColorProperty.setNative]: (value: UIColor | Color) => void;
[backgroundInternalProperty.getDefault]: () => any;
[backgroundInternalProperty.setNative]: (value: any) => void;
[offBackgroundColorProperty.getDefault]: () => UIColor;
[offBackgroundColorProperty.setNative]: (value: Color | UIColor) => void;
nativeViewProtected: UISwitch;
private _handler;
private _toggleColorTimer;
constructor();
createNativeView(): UISwitch;
initNativeView(): void;
disposeNativeView(): void;
private setNativeBackgroundColor;
_onCheckedPropertyChanged(newValue: boolean): void;
get ios(): UISwitch;
}