Interface OnStartTask

All Known Implementing Classes:
UpgradeManager.FreshStartUpgrader

public interface OnStartTask
A startup task which will be executed by StartupManager in priority ascending order when platform is ready (see OnStart).

If order of execution does not matter, you might directly use @OnStart instead.

NOTE: Do not directly use NotifyDialog in these tasks, use OnStartMessageNotifier instead.

  • Method Summary

    Modifier and Type
    Method
    Description
    Name of the task.
    int
    Get the priority of the task.
    void
    run()
    This method is called upon startup when UI is ready.
  • Method Details

    • run

      void run()
      This method is called upon startup when UI is ready.

    • getPriority

      int getPriority()
      Get the priority of the task.

      When UI is ready tasks are executed one after the other by priority ascending order.

      Returns:
    • getName

      String getName()
      Name of the task.

      Used for logging.

      Returns: