class
final
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 }
|
duration | number | Optional. Default is |
delay | number | Optional. Default is |
Property | Description |
---|---|
parentPlayer: AnimationPlayer | null | |
totalTime: number | Read-Only |
onStart() | |||
---|---|---|---|
|
fn | () => void |
void
onDone() | |||
---|---|---|---|
|
fn | () => void |
void
onDestroy() | |||
---|---|---|---|
|
fn | () => void |
void
hasStarted() |
---|
|
init() |
---|
|
play() |
---|
|
pause() |
---|
|
restart() |
---|
|
finish() |
---|
|
destroy() |
---|
|
reset() |
---|
|
setPosition() | |||
---|---|---|---|
|
position | number |
void
getPosition() |
---|
|
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/animations/NoopAnimationPlayer