UNPKG

@nativescript/core

Version:

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

38 lines (37 loc) • 2.02 kB
import { ScrollViewBase, scrollBarIndicatorVisibleProperty, isScrollEnabledProperty, iosContentInsetAdjustmentBehaviorProperty, iosScrollEdgeEffectProperty } from './scroll-view-common'; import { View } from '../core/view'; import { CoreTypes } from '../enums'; export * from './scroll-view-common'; export declare class ScrollView extends ScrollViewBase { [isScrollEnabledProperty.getDefault]: () => boolean; [isScrollEnabledProperty.setNative]: (value: boolean) => void; [scrollBarIndicatorVisibleProperty.getDefault]: () => boolean; [scrollBarIndicatorVisibleProperty.setNative]: (value: boolean) => void; [iosContentInsetAdjustmentBehaviorProperty.setNative]: (value: "never" | "automatic" | "scrollableAxes" | "always") => void; [iosScrollEdgeEffectProperty.setNative]: (value: CoreTypes.ScrollEdgeEffectType) => void; nativeViewProtected: UIScrollView; private _contentMeasuredWidth; private _contentMeasuredHeight; private _isFirstLayout; private _delegate; private _scrollEdgeContainers; createNativeView(): UIScrollView; initNativeView(): void; disposeNativeView(): void; addScrollEdgeContainer(view: View, edge: CoreTypes.ScrollEdgeType): void; removeScrollEdgeContainer(view: View): void; _setNativeClipToBounds(): void; protected attachNative(): void; protected detachNative(): void; protected updateScrollBarVisibility(value: any): void; protected updateContentInsetAdjustmentBehavior(value: 'never' | 'automatic' | 'scrollableAxes' | 'always'): void; get horizontalOffset(): number; get verticalOffset(): number; get scrollableWidth(): number; get scrollableHeight(): number; scrollToVerticalOffset(value: number, animated: boolean): void; scrollToHorizontalOffset(value: number, animated: boolean): void; onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; onLayout(left: number, top: number, right: number, bottom: number): void; _onOrientationChanged(): void; }