UNPKG

@nativescript/core

Version:

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

24 lines (23 loc) 1.2 kB
import { AnimationDefinitionInternal, AnimationPromise, AnimationBase } from './animation-common'; import { CubicBezierAnimationCurve } from '../../core-types/animation-types'; export * from './animation-common'; 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; }