| java.lang.Object | |
| ↳ | com.davidluoye.support.thread.MessageUtil |
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| MessageUtil() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static void |
waitForIdle(MessageQueue queue, Runnable callback)
Schedule a callback for when the target thread goes idle.
| ||||||||||
| static void |
waitForIdle(Handler handler, Runnable callback)
Schedule a callback for when the target thread goes idle.
| ||||||||||
| static void |
waitForIdle(Looper looper, Runnable callback)
Schedule a callback for when the target thread goes idle.
| ||||||||||
| void |
waitForIdle()
Wait util the application's main thread goes idle.
| ||||||||||
| static void |
waitForIdle(Runnable callback)
Schedule a callback for when the application's main thread goes idle.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Schedule a callback for when the target thread goes idle.
| queue | MessageQueue in target thread. |
|---|---|
| callback | Called when the thread's message queue is idle. |
Schedule a callback for when the target thread goes idle.
| handler | Handler in target thread. |
|---|---|
| callback | Called when the thread's message queue is idle. |
Schedule a callback for when the target thread goes idle.
| looper | Looper in target thread. |
|---|---|
| callback | Called when the thread's message queue is idle. |
Wait util the application's main thread goes idle.
Schedule a callback for when the application's main thread goes idle.
| callback | Called when the thread's message queue is idle. |
|---|