UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

24 lines (23 loc) 1.21 kB
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]: () => number; [colorProperty.setNative]: (value: number | Color) => void; [backgroundColorProperty.getDefault]: () => number; [backgroundColorProperty.setNative]: (value: number | Color) => void; [backgroundInternalProperty.getDefault]: () => any; [backgroundInternalProperty.setNative]: (value: any) => void; [offBackgroundColorProperty.getDefault]: () => number; [offBackgroundColorProperty.setNative]: (value: number | Color) => void; nativeViewProtected: android.widget.Switch; checked: boolean; createNativeView(): globalAndroid.widget.Switch; initNativeView(): void; disposeNativeView(): void; private setNativeBackgroundColor; _onCheckedPropertyChanged(newValue: boolean): void; }