Documentation

class ActivityRouter

A class that manages activation and deactivation of activities, with support for path-based routing.

class ActivityRouter extends ObservableObject;

Description

Activities can be added using add() for manual management, or registered with a route pattern using route(). Route-registered activities are automatically activated and deactivated based on navigation path changes. However, routes are normally managed in one go using app.addRoutes().

A single instance of this class is available as app.activities, which can be used to read (or bind to) the current set of activated activities or route parameters.

Constructor

Type members

Instance members

Inherited members