NavigateEvent extension type
The NavigateEvent
interface of the Navigation API
is the event
object for the Navigation/navigate_event
event, which fires when
any type of navigation
is initiated (this includes usage of History API
features like
History.go). NavigateEvent
provides access to information about that
navigation, and allows developers to intercept and control the navigation
handling.
- on
- Implemented types
- Available extensions
Constructors
-
factory
Properties
- bubbles → bool
-
no setterinherited
- cancelable → bool
-
no setterinherited
- cancelBubble ↔ bool
-
getter/setter pairinherited
- canIntercept → bool
-
no setter
- composed → bool
-
no setterinherited
- currentTarget → EventTarget?
-
no setterinherited
- defaultPrevented → bool
-
no setterinherited
- destination → NavigationDestination
-
no setter
- downloadRequest → String?
-
no setter
- eventPhase → int
-
no setterinherited
- formData → FormData?
-
no setter
- hashChange → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasUAVisualTransition → bool
-
no setter
- info → JSAny?
-
no setter
- isTrusted → bool
-
no setterinherited
-
no setter
- returnValue ↔ bool
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signal → AbortSignal
-
no setter
- srcElement → EventTarget?
-
no setterinherited
- target → EventTarget?
-
no setterinherited
- timeStamp → DOMHighResTimeStamp
-
no setterinherited
- type → String
-
no setterinherited
- userInitiated → bool
-
no setter
Methods
-
composedPath(
) → JSArray< EventTarget> -
The
composedPath()
method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked. This does not include nodes in shadow trees if the shadow root was created with its ShadowRoot.mode closed.inherited -
initEvent(
String type, [bool bubbles, bool cancelable]) → void -
The
Event.initEvent()
method is used to initialize the value of anevent
created using Document.createEvent.inherited -
intercept(
[NavigationInterceptOptions options]) → void -
The
intercept()
method of the NavigateEvent interface intercepts this navigation, turning it into a same-document navigation to the NavigationDestination.url URL. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preventDefault(
) → void -
The
preventDefault()
method of the Event interface tells the that if the event does not get explicitly handled, its default action should not be taken as it normally would be.inherited -
scroll(
) → void -
The
scroll()
method of the NavigateEvent interface can be called to manually trigger the browser-driven scrolling behavior that occurs in response to the navigation, if you want it to happen before the navigation handling has completed. -
stopImmediatePropagation(
) → void -
The
stopImmediatePropagation()
method of the Event interface prevents other listeners of the same event from being called.inherited -
stopPropagation(
) → void -
The
stopPropagation()
method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases. It does not, however, prevent any default behaviors from occurring; for instance, clicks on links are still processed. If you want to stop those behaviors, see the Event.preventDefault method. It also does not prevent propagation to other event-handlers of the current element. If you want to stop those, see Event.stopImmediatePropagation.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited