Interface HandlerWrapper
-
public interface HandlerWrapper
An interface to call through to aHandler
. Instances must be created by callingClock.createHandler(Looper, Handler.Callback)
onClock.DEFAULT
for all non-test cases.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
HandlerWrapper.Message
A message obtained from the handler.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Looper
getLooper()
SeeHandler.getLooper()
.boolean
hasMessages(int what)
HandlerWrapper.Message
obtainMessage(int what)
HandlerWrapper.Message
obtainMessage(int what, int arg1, int arg2)
HandlerWrapper.Message
obtainMessage(int what, int arg1, int arg2, Object obj)
HandlerWrapper.Message
obtainMessage(int what, Object obj)
boolean
post(Runnable runnable)
boolean
postAtFrontOfQueue(Runnable runnable)
boolean
postDelayed(Runnable runnable, long delayMs)
void
removeCallbacksAndMessages(Object token)
void
removeMessages(int what)
boolean
sendEmptyMessage(int what)
boolean
sendEmptyMessageAtTime(int what, long uptimeMs)
boolean
sendEmptyMessageDelayed(int what, int delayMs)
boolean
sendMessageAtFrontOfQueue(HandlerWrapper.Message message)
-
-
-
Method Detail
-
getLooper
Looper getLooper()
SeeHandler.getLooper()
.
-
hasMessages
boolean hasMessages(int what)
-
obtainMessage
HandlerWrapper.Message obtainMessage(int what)
-
obtainMessage
HandlerWrapper.Message obtainMessage(int what, @Nullable Object obj)
-
obtainMessage
HandlerWrapper.Message obtainMessage(int what, int arg1, int arg2)
-
obtainMessage
HandlerWrapper.Message obtainMessage(int what, int arg1, int arg2, @Nullable Object obj)
-
sendMessageAtFrontOfQueue
boolean sendMessageAtFrontOfQueue(HandlerWrapper.Message message)
-
sendEmptyMessage
boolean sendEmptyMessage(int what)
-
sendEmptyMessageDelayed
boolean sendEmptyMessageDelayed(int what, int delayMs)
-
sendEmptyMessageAtTime
boolean sendEmptyMessageAtTime(int what, long uptimeMs)
-
removeMessages
void removeMessages(int what)
-
removeCallbacksAndMessages
void removeCallbacksAndMessages(@Nullable Object token)
-
post
boolean post(Runnable runnable)
-
postDelayed
boolean postDelayed(Runnable runnable, long delayMs)
-
postAtFrontOfQueue
boolean postAtFrontOfQueue(Runnable runnable)
-
-