Reason enum
Values
- testing → const Reason
-
A reason used for testing purposes only.
const Reason('TESTING') - audioPlayback → const Reason
-
Specifies that the offscreen document is responsible for playing audio.
const Reason('AUDIO_PLAYBACK') - iframeScripting → const Reason
-
Specifies that the offscreen document needs to embed and script an iframe in order to modify the iframe's content.
const Reason('IFRAME_SCRIPTING') - domScraping → const Reason
-
Specifies that the offscreen document needs to embed an iframe and scrape its DOM to extract information.
const Reason('DOM_SCRAPING') - blobs → const Reason
-
Specifies that the offscreen document needs to interact with Blob objects (including
URL.createObjectURL()).const Reason('BLOBS') - domParser → const Reason
-
Specifies that the offscreen document needs to use the <a href="https://developer.mozilla.org/en-US/docs/Web/API/DOMParser>DOMParser API.
const Reason('DOM_PARSER') - userMedia → const Reason
-
Specifies that the offscreen document needs to interact with media streams from user media (e.g.
getUserMedia()).const Reason('USER_MEDIA') - displayMedia → const Reason
-
Specifies that the offscreen document needs to interact with media streams from display media (e.g.
getDisplayMedia()).const Reason('DISPLAY_MEDIA') - webRtc → const Reason
-
Specifies that the offscreen document needs to use <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API>WebRTC APIs.
const Reason('WEB_RTC') - clipboard → const Reason
-
Specifies that the offscreen document needs to interact with the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API>Clipboard API.
const Reason('CLIPBOARD') - localStorage → const Reason
-
Specifies that the offscreen document needs access to localStorage.
const Reason('LOCAL_STORAGE') - workers → const Reason
-
Specifies that the offscreen document needs to spawn workers.
const Reason('WORKERS') - batteryStatus → const Reason
-
Specifies that the offscreen document needs to use navigator.getBattery.
const Reason('BATTERY_STATUS') - matchMedia → const Reason
-
Specifies that the offscreen document needs to use window.matchMedia.
const Reason('MATCH_MEDIA') - geolocation → const Reason
-
Specifies that the offscreen document needs to use navigator.geolocation.
const Reason('GEOLOCATION')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toJS → String
-
no setter
- value → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited