public class TaskSynchronizer
extends java.lang.Object
- public static void post(final Runnable action) UI Thread에서 Runnable 객체를 실행 - public static void postDelayed(final Runnable action, final long delayMillis) UI Thread에서 Runnable 객체를 지연시간을 두고 실행
Modifier and Type | Class and Description |
---|---|
static class |
TaskSynchronizer.NonThreadSafe |
Constructor and Description |
---|
TaskSynchronizer() |
Modifier and Type | Method and Description |
---|---|
static void |
assertIsTrue(boolean condition) |
static java.lang.String |
getThreadInfo()
Helper method for building a string of thread information.
|
static boolean |
isUiThread() |
static void |
post(java.lang.Runnable action) |
static void |
postDelayed(java.lang.Runnable action,
long delayMillis) |
public static boolean isUiThread()
public static java.lang.String getThreadInfo()
public static void assertIsTrue(boolean condition)
public static void post(java.lang.Runnable action)
public static void postDelayed(java.lang.Runnable action, long delayMillis)