Docs (4.0.0)
class Activity method

onNavigate

Handles a Navigate event emitted by the current view.

protected

protected onNavigate(e: ManagedEvent<ManagedObject & {
    getNavigationTarget?: () => NavigationTarget;
}>): Promise<void> | undefined

Notes

  • This method is called when a view object emits the Navigate event. Such events are emitted from views that include a getNavigationTarget method, such as UIButton.
  • If the navigation target only includes a detail property, the pageId is set to the current activity’s navigationPageId.
  • This method calls navigateAsync() in turn, which may be overridden.

Related

  • class ActivityA class that represents a part of the application that can be activated when the user navigates to it.