CreateWindowAction class
Class that represents the navigation request used by the WebView.onCreateWindow event.
- Inheritance
-
- Object
- NavigationAction
- CreateWindowAction
Constructors
- CreateWindowAction({required int windowId, bool? androidIsDialog, IOSWKWindowFeatures? iosWindowFeatures, required URLRequest request, required bool isForMainFrame, bool? androidHasGesture, bool? androidIsRedirect, IOSWKFrameInfo? iosSourceFrame, IOSWKFrameInfo? iosTargetFrame})
Properties
- androidHasGesture ↔ bool?
-
Gets whether a gesture (such as a click) was associated with the request.
For security reasons in certain situations this method may return
false
even though the sequence of events which caused the request to be created was initiated by a user gesture.getter/setter pairinherited - androidIsDialog ↔ bool?
-
Indicates if the new window should be a dialog, rather than a full-size window.
getter/setter pair
- androidIsRedirect ↔ bool?
-
Gets whether the request was a result of a server-side redirect.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- iosSourceFrame ↔ IOSWKFrameInfo?
-
The frame that requested the navigation.
getter/setter pairinherited
- iosTargetFrame ↔ IOSWKFrameInfo?
-
The frame in which to display the new content.
getter/setter pairinherited
- iosWindowFeatures ↔ IOSWKWindowFeatures?
-
Window features requested by the webpage.
getter/setter pair
-
The type of action triggering the navigation.
getter/setter pairinherited
- isForMainFrame ↔ bool
-
Indicates whether the request was made for the main frame.
getter/setter pairinherited
- request ↔ URLRequest
-
The URL request object associated with the navigation action.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- windowId ↔ int
-
The window id. Used by WebView to create a new WebView.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
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) → CreateWindowAction? -
override