Package io.scanbot.sdk.util.thread
Object ExecutionUtils
-
- All Implemented Interfaces:
public class ExecutionUtilsUtils for predefined Thread execution
-
-
Field Summary
Fields Modifier and Type Field Description public final static ExecutionUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitensureMainThread()Ensures that method invocation happened on main thread final static UnitrunOnUIThread(Runnable runnable)Executes runnable on the UI thread final static UnitshowToast(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
-
-
-
-