-
- All Implemented Interfaces:
public final class DelayKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static PublishSubject<Float>animationFrame
-
Method Summary
Modifier and Type Method Description final PublishSubject<Float>getAnimationFrame()A subject that is called every animation frame with the time elapsed since the last frame in seconds. final static Unitdelay(Long milliseconds, Function0<Unit> action)Shortcut for calling Handler.postDelayed final static Unitpost(Function0<Unit> action)Shortcut for calling Handler.post -
-
Method Detail
-
getAnimationFrame
final PublishSubject<Float> getAnimationFrame()
A subject that is called every animation frame with the time elapsed since the last frame in seconds.
-
delay
final static Unit delay(Long milliseconds, Function0<Unit> action)
Shortcut for calling Handler.postDelayed
-
post
final static Unit post(Function0<Unit> action)
Shortcut for calling Handler.post
-
-
-
-