Class AsyncWorker

java.lang.Object
com.appscend.utilities.AsyncWorker

public class AsyncWorker extends Object
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 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

      public void post(Runnable runnable)
      Posts a Runnable object to a background thread.
      Parameters:
      runnable -
    • getInstance

      public static AsyncWorker getInstance()
      Get the singleton instance
      Returns: