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 }
animate()
GroupPlayer
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() |
---|
getPosition() |
---|
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/api/animations/NoopAnimationPlayer