AnimationClockObserver

interface AnimationClockObserver
androidx.animation.AnimationClockObserver

Observer for animation clock changes. The observers will be notified via onAnimationFrame when the frame time has been updated in animation clock

Summary

Public methods

abstract Unit
onAnimationFrame(frameTimeMillis: Long)

This gets called when animation clock ticks.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Public methods

onAnimationFrame

abstract fun onAnimationFrame(frameTimeMillis: Long): Unit

This gets called when animation clock ticks.

Parameters
frameTimeMillis: Long The frame time of the new tick in milliseconds