W3cubDocs

/Angular

NoopAnimationPlayer

class experimental

class NoopAnimationPlayer implements AnimationPlayer {
  constructor(duration: number = 0, delay: number = 0)
  parentPlayer: AnimationPlayer | null
  get totalTime: number
  onStart(fn: () => void): void
  onDone(fn: () => void): void
  onDestroy(fn: () => void): void
  hasStarted(): boolean
  init(): void
  play(): void
  triggerMicrotask()
  pause(): void
  restart(): void
  finish(): void
  destroy(): void
  reset(): void
  setPosition(p: number): void
  getPosition(): number
  triggerCallback(phaseName: string): void
}

Subclasses

Constructor

constructor(duration: number = 0, delay: number = 0)

Parameters

duration

Type: number.

Optional. Default is 0.

delay

Type: number.

Optional. Default is 0.

Properties

Property Type Description
parentPlayer AnimationPlayer | null
totalTime number Read-only.

Methods

onStart()

onStart(fn: () => void): void

Parameters

fn

Type: () => void.

Returns

void

onDone()

onDone(fn: () => void): void

Parameters

fn

Type: () => void.

Returns

void

onDestroy()

onDestroy(fn: () => void): void

Parameters

fn

Type: () => void.

Returns

void

hasStarted()

hasStarted(): boolean

Parameters

There are no parameters.

Returns

boolean

init()

init(): void

Parameters

There are no parameters.

Returns

void

play()

play(): void

Parameters

There are no parameters.

Returns

void

triggerMicrotask()

triggerMicrotask()

Parameters

There are no parameters.

pause()

pause(): void

Parameters

There are no parameters.

Returns

void

restart()

restart(): void

Parameters

There are no parameters.

Returns

void

finish()

finish(): void

Parameters

There are no parameters.

Returns

void

destroy()

destroy(): void

Parameters

There are no parameters.

Returns

void

reset()

reset(): void

Parameters

There are no parameters.

Returns

void

setPosition()

setPosition(p: number): void

Parameters

p

Type: number.

Returns

void

getPosition()

getPosition(): number

Parameters

There are no parameters.

Returns

number

triggerCallback()

triggerCallback(phaseName: string): void

Parameters

phaseName

Type: string.

Returns

void

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/animations/NoopAnimationPlayer