Interface HandlerWrapper
-
@Deprecated public interface HandlerWrapper
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.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
Deprecated.A message obtained from the handler.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Looper
getLooper()
Deprecated.SeeHandler.getLooper()
.boolean
hasMessages(int what)
Deprecated.HandlerWrapper.Message
obtainMessage(int what)
Deprecated.HandlerWrapper.Message
obtainMessage(int what, int arg1, int arg2)
Deprecated.HandlerWrapper.Message
obtainMessage(int what, int arg1, int arg2, Object obj)
Deprecated.HandlerWrapper.Message
obtainMessage(int what, Object obj)
Deprecated.boolean
post(Runnable runnable)
Deprecated.boolean
postAtFrontOfQueue(Runnable runnable)
Deprecated.boolean
postDelayed(Runnable runnable, long delayMs)
Deprecated.void
removeCallbacksAndMessages(Object token)
Deprecated.void
removeMessages(int what)
Deprecated.boolean
sendEmptyMessage(int what)
Deprecated.boolean
sendEmptyMessageAtTime(int what, long uptimeMs)
Deprecated.boolean
sendEmptyMessageDelayed(int what, int delayMs)
Deprecated.boolean
sendMessageAtFrontOfQueue(HandlerWrapper.Message message)
Deprecated.
-
-
-
Method Detail
-
getLooper
Looper getLooper()
Deprecated.SeeHandler.getLooper()
.
-
hasMessages
boolean hasMessages(int what)
Deprecated.
-
obtainMessage
HandlerWrapper.Message obtainMessage(int what)
Deprecated.
-
obtainMessage
HandlerWrapper.Message obtainMessage(int what, @Nullable Object obj)
Deprecated.
-
obtainMessage
HandlerWrapper.Message obtainMessage(int what, int arg1, int arg2)
Deprecated.
-
obtainMessage
HandlerWrapper.Message obtainMessage(int what, int arg1, int arg2, @Nullable Object obj)
Deprecated.
-
sendMessageAtFrontOfQueue
boolean sendMessageAtFrontOfQueue(HandlerWrapper.Message message)
Deprecated.
-
sendEmptyMessage
boolean sendEmptyMessage(int what)
Deprecated.
-
sendEmptyMessageDelayed
boolean sendEmptyMessageDelayed(int what, int delayMs)
Deprecated.
-
sendEmptyMessageAtTime
boolean sendEmptyMessageAtTime(int what, long uptimeMs)
Deprecated.
-
removeMessages
void removeMessages(int what)
Deprecated.
-
removeCallbacksAndMessages
void removeCallbacksAndMessages(@Nullable Object token)
Deprecated.
-
post
boolean post(Runnable runnable)
Deprecated.
-
postDelayed
boolean postDelayed(Runnable runnable, long delayMs)
Deprecated.
-
postAtFrontOfQueue
boolean postAtFrontOfQueue(Runnable runnable)
Deprecated.
-
-