Google is committed to advancing racial equity for Black communities. See how.

AnimationClockObserver

interface AnimationClockObserver
androidx.compose.animation.core.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.

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