UNPKG

@nativescript/core

Version:

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

25 lines (24 loc) 1.31 kB
import { AnimationDefinitionInternal, AnimationPromise, AnimationBase } from './animation-common'; import { CubicBezierAnimationCurve } from './animation-interfaces'; export * from './animation-common'; export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation'; export declare function _resolveAnimationCurve(curve: string | CubicBezierAnimationCurve | android.view.animation.Interpolator | android.view.animation.LinearInterpolator): android.view.animation.Interpolator; export declare class Animation extends AnimationBase { private _animatorListener; private _nativeAnimatorsArray; private _animatorSet; private _animators; private _propertyUpdateCallbacks; private _propertyResetCallbacks; private _valueSource; private _target; private _resetOnFinish; constructor(animationDefinitions: Array<AnimationDefinitionInternal>, playSequentially?: boolean); play(resetOnFinish?: boolean): AnimationPromise; cancel(): void; _resolveAnimationCurve(curve: string | CubicBezierAnimationCurve | android.view.animation.Interpolator): android.view.animation.Interpolator; protected _play(): void; private _onAndroidAnimationEnd; private _onAndroidAnimationCancel; private _createAnimators; }