Package com.google.android.exoplayer2.util

## Interface HandlerWrapper

-     public interface HandlerWrapper

  An interface to call through to a `Handler`. Instances must be created by calling `Clock.createHandler(Looper, Handler.Callback)` on `Clock.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()` | See `Handler.getLooper()`.
    `boolean` | `hasMessages​(int what)` | See `Handler.hasMessages(int)`.
    `HandlerWrapper.Message` | `obtainMessage​(int what)` | See `Handler.obtainMessage(int)`.
    `HandlerWrapper.Message` | `obtainMessage​(int what, int arg1, int arg2)` | See `Handler.obtainMessage(int, int, int)`.
    `HandlerWrapper.Message` | `obtainMessage​(int what, int arg1, int arg2, Object obj)` | See `Handler.obtainMessage(int, int, int, Object)`.
    `HandlerWrapper.Message` | `obtainMessage​(int what, Object obj)` | See `Handler.obtainMessage(int, Object)`.
    `boolean` | `post​(Runnable runnable)` | See `Handler.post(Runnable)`.
    `boolean` | `postAtFrontOfQueue​(Runnable runnable)` | See `Handler.postAtFrontOfQueue(Runnable)`.
    `boolean` | `postDelayed​(Runnable runnable, long delayMs)` | See `Handler.postDelayed(Runnable, long)`.
    `void` | `removeCallbacksAndMessages​(Object token)` | See `Handler.removeCallbacksAndMessages(Object)`.
    `void` | `removeMessages​(int what)` | See `Handler.removeMessages(int)`.
    `boolean` | `sendEmptyMessage​(int what)` | See `Handler.sendEmptyMessage(int)`.
    `boolean` | `sendEmptyMessageAtTime​(int what, long uptimeMs)` | See `Handler.sendEmptyMessageAtTime(int, long)`.
    `boolean` | `sendEmptyMessageDelayed​(int what, int delayMs)` | See `Handler.sendEmptyMessageDelayed(int, long)`.
    `boolean` | `sendMessageAtFrontOfQueue​(HandlerWrapper.Message message)` | See `Handler.sendMessageAtFrontOfQueue(android.os.Message)`.

- - ### Method Detail

    - #### getLooper

          Looper getLooper()

      See `Handler.getLooper()`.

    - #### hasMessages

          boolean hasMessages​(int what)

      See `Handler.hasMessages(int)`.

    - #### obtainMessage

          HandlerWrapper.Message obtainMessage​(int what)

      See `Handler.obtainMessage(int)`.

    - #### obtainMessage

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

      See `Handler.obtainMessage(int, Object)`.

    - #### obtainMessage

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

      See `Handler.obtainMessage(int, int, int)`.

    - #### obtainMessage

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

      See `Handler.obtainMessage(int, int, int, Object)`.

    - #### sendMessageAtFrontOfQueue

          boolean sendMessageAtFrontOfQueue​(HandlerWrapper.Message message)

      See `Handler.sendMessageAtFrontOfQueue(android.os.Message)`.

    - #### sendEmptyMessage

          boolean sendEmptyMessage​(int what)

      See `Handler.sendEmptyMessage(int)`.

    - #### sendEmptyMessageDelayed

          boolean sendEmptyMessageDelayed​(int what,
                                          int delayMs)

      See `Handler.sendEmptyMessageDelayed(int, long)`.

    - #### sendEmptyMessageAtTime

          boolean sendEmptyMessageAtTime​(int what,
                                         long uptimeMs)

      See `Handler.sendEmptyMessageAtTime(int, long)`.

    - #### removeMessages

          void removeMessages​(int what)

      See `Handler.removeMessages(int)`.

    - #### removeCallbacksAndMessages

          void removeCallbacksAndMessages​(@Nullable
                                          Object token)

      See `Handler.removeCallbacksAndMessages(Object)`.

    - #### post

          boolean post​(Runnable runnable)

      See `Handler.post(Runnable)`.

    - #### postDelayed

          boolean postDelayed​(Runnable runnable,
                              long delayMs)

      See `Handler.postDelayed(Runnable, long)`.

    - #### postAtFrontOfQueue

          boolean postAtFrontOfQueue​(Runnable runnable)

      See `Handler.postAtFrontOfQueue(Runnable)`.