AnimationClockObservable

interface AnimationClockObservable
androidx.animation.AnimationClockObservable

This interface allows AnimationClock to be subscribed and unsubscribed.

Summary

Public methods

abstract Unit

Subscribes an observer to the animation clock source.

abstract Unit

Unsubscribes an observer from the animation clock.

Public methods

subscribe

abstract 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.

unsubscribe

abstract fun unsubscribe(observer: AnimationClockObserver): Unit

Unsubscribes an observer from the animation clock.

Parameters
observer: AnimationClockObserver The observer to be removed from the subscription list.