BaseAnimationClock

sealed class BaseAnimationClock : AnimationClockObservable
kotlin.Any
   ↳ androidx.animation.BaseAnimationClock

Base implementation for the AnimationClockObservable that handles the subscribing and unsubscribing logic that would be common for all custom animation clocks.

Summary

Public methods

open Unit

Subscribes an observer to the animation clock source.

open Unit

Unsubscribes an observer from the animation clock.

Public methods

subscribe

open 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

open fun unsubscribe(observer: AnimationClockObserver): Unit

Unsubscribes an observer from the animation clock.

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