UNPKG

@nativescript/core

Version:

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

33 lines (32 loc) 1.7 kB
import { ScrollView as ScrollViewDefinition, ScrollEventData } from '.'; import { ContentView } from '../content-view'; import { Property } from '../core/properties'; import { EventData } from '../../data/observable'; import { CoreTypes } from '../../core-types'; export declare abstract class ScrollViewBase extends ContentView implements ScrollViewDefinition { static scrollEvent: string; orientation: CoreTypes.OrientationType; scrollBarIndicatorVisible: boolean; isScrollEnabled: boolean; private _addedScrollEvent; addEventListener(arg: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; removeEventListener(arg: string, callback?: (data: EventData) => void, thisArg?: any): void; initNativeView(): void; disposeNativeView(): void; protected attachNative(): void; protected detachNative(): void; get horizontalOffset(): number; get verticalOffset(): number; get scrollableWidth(): number; get scrollableHeight(): number; abstract scrollToVerticalOffset(value: number, animated: boolean): any; abstract scrollToHorizontalOffset(value: number, animated: boolean): any; abstract _onOrientationChanged(): any; } export interface ScrollViewBase { on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void; on(event: 'scroll', callback: (args: ScrollEventData) => void, thisArg?: any): void; } export declare const orientationProperty: Property<ScrollViewBase, CoreTypes.OrientationType>; export declare const scrollBarIndicatorVisibleProperty: Property<ScrollViewBase, boolean>; export declare const isScrollEnabledProperty: Property<ScrollViewBase, boolean>;