class ActivityContext
A class that contains root activities and the navigation controller, part of the global application context.
class ActivityContext extends ManagedObject
Instance Members
- navigationControllerThe current navigation controller.
- getActive()Returns an array of all activities that are currently active.
- getAll()Returns an array of all current activities.
- add(activity)Adds the specified activity.
- clear()Removes all activities and resets the navigation controller.
Inherited Members
- emit(event)Emits an event, immediately calling all event handlers.
- emitChange(name?, data?)Emits a change event, an instance of ManagedChangeEvent.
- listen(handler)Adds a handler for all events emitted by this object.
- isUnlinked()Returns true if the object has been unlinked.
- unlink()Unlinks this managed object.
- beforeUnlink() protectedA method that’s called immediately before unlinking an object, can be overridden.
- attach(target, observer?) protectedAttaches the provided managed object to this object.
- autoAttach(propertyName, observer?) protectedObserves a property, so that any object assigned to it is attached immediately.