DefaultAnimationClock

class DefaultAnimationClock : BaseAnimationClock
kotlin.Any
   ↳ androidx.animation.BaseAnimationClock
   ↳ androidx.animation.DefaultAnimationClock

Default Choreographer based clock that pushes a new frame to all subscribers on each Choreographer tick, until all subscribers have unsubscribed.

Summary

Public constructors

Default Choreographer based clock that pushes a new frame to all subscribers on each Choreographer tick, until all subscribers have unsubscribed.

Public methods

Unit

Subscribes an observer to the animation clock source.

Inherited functions

Public constructors

<init>

DefaultAnimationClock()

Default Choreographer based clock that pushes a new frame to all subscribers on each Choreographer tick, until all subscribers have unsubscribed.

Public methods

subscribe

fun subscribe(observer: AnimationClockObserver): Unit

Subscribes an observer to the animation clock source.

Parameters
observer: AnimationClockObserver The observer that will be notified when animation clock time is updated.