Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NativeScriptAnimationPlayer

Hierarchy

  • NativeScriptAnimationPlayer

Implements

  • AnimationPlayer

Index

Constructors

constructor

  • Parameters

    • target: NgView
    • keyframes: Keyframe[]
    • duration: number
    • delay: number
    • easing: string

    Returns NativeScriptAnimationPlayer

Properties

Private _doneSubscriptions

_doneSubscriptions: Function[]

Private _finished

_finished: boolean

Private _startSubscriptions

_startSubscriptions: Function[]

Private _started

_started: boolean

Private animation

animation: KeyframeAnimation

Private delay

delay: number

Private duration

duration: number

parentPlayer

parentPlayer: AnimationPlayer

Private target

target: NgView

Accessors

totalTime

totalTime:

Methods

destroy

  • destroy(): void
  • Returns void

finish

  • finish(): void
  • Returns void

getPosition

  • getPosition(): number
  • Returns number

hasStarted

  • hasStarted(): boolean
  • Returns boolean

init

  • init(): void
  • Returns void

Private initKeyframeAnimation

  • initKeyframeAnimation(keyframes: Keyframe[], duration: number, delay: number, easing: string): void
  • Parameters

    • keyframes: Keyframe[]
    • duration: number
    • delay: number
    • easing: string

    Returns void

onDestroy

  • onDestroy(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

onDone

  • onDone(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

Private onFinish

  • onFinish(): void
  • Returns void

onStart

  • onStart(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

Private onTargetLoaded

  • onTargetLoaded(args: EventData): void
  • Parameters

    • args: EventData

    Returns void

pause

  • pause(): void
  • Returns void

play

  • play(): void
  • Returns void

Private playAnimation

  • playAnimation(): void
  • Returns void

reset

  • reset(): void
  • Returns void

restart

  • restart(): void
  • Returns void

setPosition

  • setPosition(_p: any): void
  • Parameters

    • _p: any

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method