HandlerKt
Added in 1.1.0
public final class HandlerKt
Summary
Public methods |
|
|---|---|
static final @NonNull Runnable |
postAtTime(Version of |
static final @NonNull Runnable |
postDelayed(Version of |
Public methods
postAtTime
public static final @NonNull Runnable postAtTime(
@NonNull Handler receiver,
long uptimeMillis,
Object token,
@NonNull Function0<Unit> action
)
Version of Handler.postAtTime which re-orders the parameters, allowing the action to be placed outside of parentheses.
handler.postAtTime(200) {
doSomething()
}postDelayed
public static final @NonNull Runnable postDelayed(
@NonNull Handler receiver,
long delayInMillis,
Object token,
@NonNull Function0<Unit> action
)
Version of Handler.postDelayed which re-orders the parameters, allowing the action to be placed outside of parentheses.
handler.postDelayed(200) {
doSomething()
}