@nativescript/core
Version:
A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.
28 lines (27 loc) • 1.4 kB
TypeScript
import { ScrollViewBase, scrollBarIndicatorVisibleProperty, isScrollEnabledProperty } from './scroll-view-common';
import { isUserInteractionEnabledProperty } from '../core/view';
export * from './scroll-view-common';
export declare class ScrollView extends ScrollViewBase {
[isUserInteractionEnabledProperty.setNative]: (value: boolean) => void;
[isScrollEnabledProperty.getDefault]: () => boolean;
[isScrollEnabledProperty.setNative]: (value: boolean) => void;
[scrollBarIndicatorVisibleProperty.getDefault]: () => boolean;
[scrollBarIndicatorVisibleProperty.setNative]: (value: boolean) => void;
nativeViewProtected: org.nativescript.widgets.VerticalScrollView | org.nativescript.widgets.HorizontalScrollView;
private _androidViewId;
private handler;
get horizontalOffset(): number;
get verticalOffset(): number;
get scrollableWidth(): number;
get scrollableHeight(): number;
scrollToVerticalOffset(value: number, animated: boolean): void;
scrollToHorizontalOffset(value: number, animated: boolean): void;
createNativeView(): org.nativescript.widgets.VerticalScrollView | org.nativescript.widgets.HorizontalScrollView;
initNativeView(): void;
_onOrientationChanged(): void;
protected attachNative(): void;
private _lastScrollX;
private _lastScrollY;
private _onScrollChanged;
protected detachNative(): void;
}