HandlerWrapper


@UnstableApi
interface HandlerWrapper


An interface to call through to a Handler. Instances must be created by calling createHandler on DEFAULT for all non-test cases.

Summary

Nested types

A message obtained from the handler.

Public functions

getLooper

fun getLooper(): Looper!

See getLooper.

hasMessages

fun hasMessages(what: Int): Boolean

See hasMessages.

obtainMessage

fun obtainMessage(what: Int): HandlerWrapper.Message!

See obtainMessage.

obtainMessage

fun obtainMessage(what: Int, obj: Any?): HandlerWrapper.Message!

See obtainMessage.

obtainMessage

fun obtainMessage(what: Int, arg1: Int, arg2: Int): HandlerWrapper.Message!

See obtainMessage.

obtainMessage

fun obtainMessage(what: Int, arg1: Int, arg2: Int, obj: Any?): HandlerWrapper.Message!

See obtainMessage.

post

fun post(runnable: Runnable!): Boolean

See post.

postAtFrontOfQueue

fun postAtFrontOfQueue(runnable: Runnable!): Boolean

See postAtFrontOfQueue.

postDelayed

fun postDelayed(runnable: Runnable!, delayMs: Long): Boolean

See postDelayed.

removeCallbacksAndMessages

fun removeCallbacksAndMessages(token: Any?): Unit

See removeCallbacksAndMessages.

removeMessages

fun removeMessages(what: Int): Unit

See removeMessages.

sendEmptyMessage

fun sendEmptyMessage(what: Int): Boolean

See sendEmptyMessage.

sendEmptyMessageAtTime

fun sendEmptyMessageAtTime(what: Int, uptimeMs: Long): Boolean

See sendEmptyMessageAtTime.

sendEmptyMessageDelayed

fun sendEmptyMessageDelayed(what: Int, delayMs: Int): Boolean

See sendEmptyMessageDelayed.

sendMessageAtFrontOfQueue

fun sendMessageAtFrontOfQueue(message: HandlerWrapper.Message!): Boolean

See sendMessageAtFrontOfQueue.