WebViewNavigationEvent class

Android NavigationListener payload for PlatformWebViewCreationParams.onWebViewNavigation.

Constructors

WebViewNavigationEvent({int? durationMillis, bool? isBack, bool? isForward, bool? isReload, bool? isSameDocument, String? markName, required WebViewNavigationEventType type, WebUri? url, bool? wasInitiatedByPage})

Properties

durationMillis ↔ int?
Duration in milliseconds for FCP/LCP/performance-mark events.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isBack ↔ bool?
Whether this navigation is history back.
getter/setter pair
isForward ↔ bool?
Whether this navigation is history forward.
getter/setter pair
isReload ↔ bool?
Whether this navigation is a reload.
getter/setter pair
isSameDocument ↔ bool?
Whether this navigation is same-document.
getter/setter pair
markName ↔ String?
Performance mark name when type is WebViewNavigationEventType_.PERFORMANCE_MARK.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ WebViewNavigationEventType
Event type.
getter/setter pair
url ↔ WebUri?
URL associated with the navigation or page, when known.
getter/setter pair
wasInitiatedByPage ↔ bool?
Whether the page/renderer initiated the navigation.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts instance to a map.
toMap({EnumMethod? enumMethod}) → Map<String, dynamic>
Converts instance to a map.
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? map, {EnumMethod? enumMethod}) → WebViewNavigationEvent?
Gets a possible WebViewNavigationEvent instance from a Map value.