DVWebPermissionDenied class
The browser had the API and the answer was no.
The distinction this whole file is built around. A capability the browser
does not have leaves its binding unregistered, so DVNativeBridge
throws its own "not registered" message and isRegistered reports false.
A capability the browser has and refuses — the person clicked Deny, the
call came from no user gesture, the page is not on a secure origin —
throws this instead, carrying what the browser said.
An application that treats the two the same offers to turn on a feature that can never work, or hides one that a second tap would enable.
- Implemented types
Constructors
- DVWebPermissionDenied(String binding, String reason)
-
const
Properties
- binding → String
-
The binding name that was refused, so a log line is greppable.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- reason → String
-
What the browser said, as near to verbatim as it gave it.
final
- 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
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited