DefaultMessageProvider class
Implements the MessageProvider for WebView based devices that allow url interception and direct message evaluation (script injection).
Messages are passed to device via HTTP GET and JSON encoded URLs.
Messages are passed from device to browser from script evaluation via a known function which defaults to window.__dispatchMessage.
- Implemented types
- Annotations
-
- @JS()
Constructors
- DefaultMessageProvider([dynamic options])
Properties
-
defaultRatelimitMaxRequestPerSec
→ List<
String> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headerRatelimitLimit
→ List<
String> -
no setter
-
headerRatelimitNextrequest
→ List<
String> -
no setter
-
headerRatelimitRemaining
→ List<
String> -
no setter
-
headerRatelimitReset
→ List<
String> -
no setter
- receive ← MessageCallback
-
Register the callback for when events from the device are received.
no getteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
String command, dynamic payload) → dynamic -
Sends the command and payload to the device or service responsible for handling events.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited