-
public final class FrameTickerKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static FrameTickerChoreographerFrameTickerprivate final static FrameTickerComposeFrameTicker
-
Method Summary
Modifier and Type Method Description final FrameTickergetChoreographerFrameTicker()A FrameTicker that uses Choreographer to get frame callbacks. final FrameTickergetComposeFrameTicker()A FrameTicker that uses withFrameNanos to get frame callbacks. final static <R extends Any> RwithFrameNanosChoreo(Function1<Long, R> onFrame)An API compatible version of withFrameNanos from Compose that uses Choreographer. -
-
Method Detail
-
getChoreographerFrameTicker
final FrameTicker getChoreographerFrameTicker()
A FrameTicker that uses Choreographer to get frame callbacks.
-
getComposeFrameTicker
final FrameTicker getComposeFrameTicker()
A FrameTicker that uses withFrameNanos to get frame callbacks.
-
withFrameNanosChoreo
final static <R extends Any> R withFrameNanosChoreo(Function1<Long, R> onFrame)
An API compatible version of withFrameNanos from Compose that uses Choreographer.
- Parameters:
onFrame- A callback that is invoked with the frame time in nanoseconds.
-
-
-
-