Handler class. The special
handling is all done by ShadowLooper and ShadowMessageQueue. This class has been retained
for backward compatibility with the various static method implementations.@Deprecated @Implements(value=android.os.Handler.class) public class ShadowHandler extends Object
Runnables into a queue instead of sending them to be handled on a
separate thread.Runnables that are scheduled to be executed immediately can be triggered by calling
idleMainLooper().
todo: add utility method to advance time and trigger execution of Runnables scheduled for a time in the future| Constructor and Description |
|---|
ShadowHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
flush()
Deprecated.
use
ShadowLooper.idleMainLooper() instead |
static void |
idleMainLooper()
Deprecated.
|
static void |
runMainLooperOneTask()
Deprecated.
|
static void |
runMainLooperToEndOfTasks()
Deprecated.
|
static void |
runMainLooperToNextTask()
Deprecated.
|
public static void flush()
ShadowLooper.idleMainLooper() insteadpublic static void idleMainLooper()
ShadowLooper.idleMainLooper()public static void runMainLooperToEndOfTasks()
public static void runMainLooperOneTask()
()public static void runMainLooperToNextTask()
()Copyright © 2016. All rights reserved.