Docs (4.0.0)
class GlobalContext method

addActivity

Adds an activity to the global application context.

addActivity(activity: Activity, activate?: boolean): this

Summary

This method adds an Activity instance to the current ActivityContext, i.e. app.activities. This allows the activity to use the current path and renderer to activate and/or render its view automatically.

Parameters

  • activity — The activity to be added
  • activate — True if the activity should be activated immediately

Related