Class AsyncWorker
java.lang.Object
com.appscend.utilities.AsyncWorker
Singleton class for posting Runnables for running on a background thread.
The instance is automatically created when initializing the Veeso Player, so only calling post(Runnable) on the singleton instance is required.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AsyncWorkerGet the singleton instancevoidinit()Initializer function.voidPosts a Runnable object to a background thread.voidstop()Stop all background threads.
-
Constructor Details
-
AsyncWorker
public AsyncWorker()
-
-
Method Details
-
init
public void init()Initializer function. This is automatically called by the Veeso Player early in the execution pipeline. -
stop
public void stop()Stop all background threads. This is automatically called by the Veeso Player when de-allocating resources. -
post
Posts a Runnable object to a background thread.- Parameters:
runnable-
-
getInstance
-