@nativescript/core
Version:
A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.
35 lines (34 loc) • 1.61 kB
TypeScript
import { Background } from '../styling/background';
import { SliderBase, valueProperty, minValueProperty, maxValueProperty } from './slider-common';
import { colorProperty, backgroundColorProperty, backgroundInternalProperty } from '../styling/style-properties';
import { Color } from '../../color';
export * from './slider-common';
declare class TNSSlider extends UISlider {
owner: WeakRef<Slider>;
static initWithOwner(owner: WeakRef<Slider>): TNSSlider;
accessibilityIncrement(): void;
accessibilityDecrement(): void;
}
export declare class Slider extends SliderBase {
[valueProperty.getDefault]: () => number;
[valueProperty.setNative]: (value: number) => void;
[minValueProperty.getDefault]: () => number;
[minValueProperty.setNative]: (value: number) => void;
[maxValueProperty.getDefault]: () => number;
[maxValueProperty.setNative]: (value: number) => void;
[colorProperty.getDefault]: () => UIColor;
[colorProperty.setNative]: (value: UIColor | Color) => void;
[backgroundColorProperty.getDefault]: () => UIColor;
[backgroundColorProperty.setNative]: (value: UIColor | Color) => void;
[backgroundInternalProperty.getDefault]: () => Background;
[backgroundInternalProperty.setNative]: (value: Background) => void;
nativeViewProtected: TNSSlider;
private _changeHandler;
createNativeView(): TNSSlider;
initNativeView(): void;
disposeNativeView(): void;
get ios(): UISlider;
private getAccessibilityStep;
_handlerAccessibilityIncrementEvent(): number;
_handlerAccessibilityDecrementEvent(): number;
}