public final class Threads extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isUiThread() |
static android.os.Handler |
newUiHandler() |
static void |
tryRunOnUiThread(android.app.Activity activity,
Runnable runnable)
Method tries to run runnable on UI thread.
|
static void |
tryRunOnUiThread(Fragment fragment,
Runnable runnable) |
public static void tryRunOnUiThread(@Nullable android.app.Activity activity, @Nonnull Runnable runnable)
activity - activity bound to runnablerunnable - runnable to bve executedpublic static void tryRunOnUiThread(@Nonnull Fragment fragment, @Nonnull Runnable runnable)
public static boolean isUiThread()
@Nonnull public static android.os.Handler newUiHandler()
Handler which runs on UI threadCopyright © 2014 se.solovyev. All Rights Reserved.