Package io.scanbot.sdk.util.thread
Object ExecutionUtils
-
- All Implemented Interfaces:
public class ExecutionUtils
Utils for predefined Thread execution
-
-
Field Summary
Fields Modifier and Type Field Description public final static ExecutionUtils
INSTANCE
-
Method Summary
Modifier and Type Method Description final static Unit
ensureMainThread()
Ensures that method invocation happened on main thread final static Unit
runOnUIThread(Runnable runnable)
Executes runnable on the UI thread final static Unit
showToast(Context context, Integer messageRes)
Shows toast. -
-
Method Detail
-
ensureMainThread
final static Unit ensureMainThread()
Ensures that method invocation happened on main thread
-
runOnUIThread
final static Unit runOnUIThread(Runnable runnable)
Executes runnable on the UI thread
-
-
-
-