NavigationAnalyticsSink class interface
A sink for navigation analytics events.
j_navigation does not depend on a concrete analytics package. Instead it
emits screen-enter / screen-exit events to an optional
NavigationAnalyticsSink provided to NavigationController. Host apps
implement this interface and adapt the events to whatever analytics stack
they use.
When no sink is provided, NavigationController silently skips analytics —
the "no analytics" build.
Constructors
-
Creates a navigation analytics sink.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
flush(
) → Future< void> - Flushes any buffered events. Called on controller dispose.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onScreenEnter(
NavigationScreenEnterEvent event) → void - Called when a screen is entered via navigation.
-
onScreenExit(
NavigationScreenExitEvent event) → void - Called when a screen is exited via navigation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited