NoopAnimationPlayer
class
An empty programmatic controller for reusable animations. Used internally when animations are disabled, to avoid checking for the null case when an animation player is expected.
class NoopAnimationPlayer implements AnimationPlayer { constructor(duration: number = 0, delay: number = 0) parentPlayer: AnimationPlayer | null totalTime: number onStart(fn: () => void): void onDone(fn: () => void): void onDestroy(fn: () => void): void hasStarted(): boolean init(): void play(): void pause(): void restart(): void finish(): void destroy(): void reset(): void setPosition(position: number): void getPosition(): number }
Subclasses
See also
-
animate()
-
GroupPlayer
Constructor
|
duration | number | Optional. Default is |
delay | number | Optional. Default is |
Properties
Property | Description |
---|---|
parentPlayer: AnimationPlayer | null | |
totalTime: number | Read-Only |
Methods
onStart() | |||
---|---|---|---|
|
fn | () => void |
Returns
void
onDone() | |||
---|---|---|---|
|
fn | () => void |
Returns
void
onDestroy() | |||
---|---|---|---|
|
fn | () => void |
Returns
void
hasStarted() |
---|
|
init() |
---|
|
play() |
---|
|
pause() |
---|
|
restart() |
---|
|
finish() |
---|
|
destroy() |
---|
|
reset() |
---|
|
setPosition() |
---|
getPosition() |
---|
|
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v8.angular.io/api/animations/NoopAnimationPlayer