NavigationIntegrationV2 class

Navigation Integration v2 using NavigationProvider pattern Framework-agnostic navigation tracking that works with any routing system

Implemented types

Properties

currentProvider NavigationProvider?
Get current navigation provider for external access
no setter
flutterNavigatorProvider FlutterNavigatorProvider?
Get FlutterNavigatorProvider for RouteObserver access
no setter
goRouterNavigatorProvider GoRouterNavigatorProvider?
Get GoRouterNavigatorProvider for GoRouter integration
no setter
hashCode int
The hash code for this object.
no setterinherited
integrationName String
Unique identifier for this integration
no setteroverride
isActive bool
Whether this integration is currently active
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

autoDetectNavigationSystem({dynamic routerDelegate}) Future<void>
Auto-detect navigation system and switch provider
close() Future<void>
Clean up any resources used by this integration This method MUST be implemented to prevent memory leaks and restore original system state
override
initialize(ObslyHub hub) Future<void>
Initialize the integration with the given hub and configuration This method should set up any necessary interceptors or listeners
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
switchToGoRouter(dynamic routerDelegate, {String? caller}) Future<void>
Switch to GoRouter provider and attach to RouterDelegate
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance NavigationIntegrationV2
no setter
isNavigationAvailable bool
GLOBAL STATE ACCESS - Check if navigation is initialized and active
no setter

Static Methods

getCurrentViewName() String
GLOBAL STATE ACCESS - Returns current view name for event enrichment
getPreviousViewName() String?
GLOBAL STATE ACCESS - Returns previous view name