add()
Adds an activity to this router.
add(activity: Activity, activate?: boolean): this;
Notes
- The activity is added and attached to this router, but never automatically activated or deactivated by route changes. Use this for activities that are managed manually.
- If the activity unlinks itself, it’s automatically removed from the list.
Parameters
- activity — The activity to be added
- activate — True if the activity should be activated immediately
Related
class ActivityRouter
A class that manages activation and deactivation of activities, with support for path-based routing.
