HandlerWrapper


@UnstableApi
public 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

public interface HandlerWrapper.Message

A message obtained from the handler.

Public methods

abstract Looper

See getLooper.

abstract boolean
hasMessages(int what)

See hasMessages.

abstract HandlerWrapper.Message
obtainMessage(int what)

See obtainMessage.

abstract HandlerWrapper.Message
obtainMessage(int what, @Nullable Object obj)

See obtainMessage.

abstract HandlerWrapper.Message
obtainMessage(int what, int arg1, int arg2)

See obtainMessage.

abstract HandlerWrapper.Message
obtainMessage(int what, int arg1, int arg2, @Nullable Object obj)

See obtainMessage.

abstract boolean
post(Runnable runnable)

See post.

abstract boolean

See postAtFrontOfQueue.

abstract boolean
postDelayed(Runnable runnable, long delayMs)

See postDelayed.

abstract void

See removeCallbacksAndMessages.

abstract void
removeMessages(int what)

See removeMessages.

abstract boolean
sendEmptyMessage(int what)

See sendEmptyMessage.

abstract boolean
sendEmptyMessageAtTime(int what, long uptimeMs)

See sendEmptyMessageAtTime.

abstract boolean
sendEmptyMessageDelayed(int what, int delayMs)

See sendEmptyMessageDelayed.

abstract boolean

See sendMessageAtFrontOfQueue.

Public methods

getLooper

abstract Looper getLooper()

See getLooper.

hasMessages

abstract boolean hasMessages(int what)

See hasMessages.

obtainMessage

abstract HandlerWrapper.Message obtainMessage(int what)

See obtainMessage.

obtainMessage

abstract HandlerWrapper.Message obtainMessage(int what, @Nullable Object obj)

See obtainMessage.

obtainMessage

abstract HandlerWrapper.Message obtainMessage(int what, int arg1, int arg2)

See obtainMessage.

obtainMessage

abstract HandlerWrapper.Message obtainMessage(int what, int arg1, int arg2, @Nullable Object obj)

See obtainMessage.

post

abstract boolean post(Runnable runnable)

See post.

postAtFrontOfQueue

abstract boolean postAtFrontOfQueue(Runnable runnable)

See postAtFrontOfQueue.

postDelayed

abstract boolean postDelayed(Runnable runnable, long delayMs)

See postDelayed.

removeCallbacksAndMessages

abstract void removeCallbacksAndMessages(@Nullable Object token)

See removeCallbacksAndMessages.

removeMessages

abstract void removeMessages(int what)

See removeMessages.

sendEmptyMessage

abstract boolean sendEmptyMessage(int what)

See sendEmptyMessage.

sendEmptyMessageAtTime

abstract boolean sendEmptyMessageAtTime(int what, long uptimeMs)

See sendEmptyMessageAtTime.

sendEmptyMessageDelayed

abstract boolean sendEmptyMessageDelayed(int what, int delayMs)

See sendEmptyMessageDelayed.

sendMessageAtFrontOfQueue

abstract boolean sendMessageAtFrontOfQueue(HandlerWrapper.Message message)

See sendMessageAtFrontOfQueue.