ChromeContentSettings class
Properties
-
automaticDownloads
→ ContentSetting
-
Whether to allow sites to download multiple files automatically. One of
allow: Allow sites to download multiple files automatically,
block: Don't allow sites to download multiple files automatically,
ask: Ask when a site wants to download files automatically after the
first file.
Default is ask.
The primary URL is the URL of the top-level frame. The secondary URL is
not used.
no setter
-
autoVerify
→ ContentSetting
-
Whether to allow sites to use the Private State Tokens
API. One
of
allow: Allow sites to use the Private State Tokens API,
block: Block sites from using the Private State Tokens API.
Default is allow.
The primary URL is the URL of the top-level frame. The secondary URL is
not used. NOTE: When calling set(), the primary pattern must be
<all_urls>.
no setter
-
camera
→ ContentSetting
-
Whether to allow sites to access the camera. One of
allow: Allow sites to access the camera,
block: Don't allow sites to access the camera,
ask: Ask when a site wants to access the camera.
Default is ask.
The primary URL is the URL of the document which requested camera access.
The secondary URL is not used.
NOTE: The 'allow' setting is not valid if both patterns are '<all_urls>'.
no setter
-
clipboard
→ ContentSetting
-
Whether to allow sites to access the clipboard via advanced capabilities
of the Async Clipboard API. "Advanced" capabilities include anything
besides writing built-in formats after a user gesture, i.e. the ability to
read, the ability to write custom formats, and the ability to write
without a user gesture. One of
allow: Allow sites to use advanced clipboard capabilities,
block: Don't allow sites to use advanced clipboard capabilties,
ask: Ask when a site wants to use advanced clipboard capabilities.
Default is ask.
The primary URL is the URL of the document which requested clipboard
access. The secondary URL is not used.
no setter
-
cookies
→ ContentSetting
-
Whether to allow cookies and other local data to be set by websites. One
of
allow: Accept cookies,
block: Block cookies,
session_only: Accept cookies only for the current session.
Default is allow.
The primary URL is the URL representing the cookie origin. The secondary
URL is the URL of the top-level frame.
no setter
-
fullscreen
→ ContentSetting
-
Deprecated. No longer has any effect. Fullscreen permission is now
automatically granted for all sites. Value is always
allow.
no setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
images
→ ContentSetting
-
Whether to show images. One of
allow: Show images,
block: Don't show images.
Default is allow.
The primary URL is the URL of the top-level frame. The secondary URL is
the URL of the image.
no setter
-
isAvailable
→ bool
-
no setter
-
javascript
→ ContentSetting
-
Whether to run JavaScript. One of
allow: Run JavaScript,
block: Don't run JavaScript.
Default is allow.
The primary URL is the URL of the top-level frame. The secondary URL is
not used.
no setter
-
location
→ ContentSetting
-
Whether to allow Geolocation. One of
allow: Allow sites to track your physical location,
block: Don't allow sites to track your physical location,
ask: Ask before allowing sites to track your physical location.
Default is ask.
The primary URL is the URL of the document which requested location data.
The secondary URL is the URL of the top-level frame (which may or may not
differ from the requesting URL).
no setter
-
microphone
→ ContentSetting
-
Whether to allow sites to access the microphone. One of
allow: Allow sites to access the microphone,
block: Don't allow sites to access the microphone,
ask: Ask when a site wants to access the microphone.
Default is ask.
The primary URL is the URL of the document which requested microphone
access. The secondary URL is not used.
NOTE: The 'allow' setting is not valid if both patterns are '<all_urls>'.
no setter
-
mouselock
→ ContentSetting
-
Deprecated. No longer has any effect. Mouse lock permission is now
automatically granted for all sites. Value is always
allow.
no setter
-
notifications
→ ContentSetting
-
Whether to allow sites to show desktop notifications. One of
allow: Allow sites to show desktop notifications,
block: Don't allow sites to show desktop notifications,
ask: Ask when a site wants to show desktop notifications.
Default is ask.
The primary URL is the URL of the document which wants to show the
notification. The secondary URL is not used.
no setter
-
plugins
→ ContentSetting
-
Deprecated. With Flash support removed in Chrome 88, this
permission no longer has any effect. Value is always
block. Calls to
set() and clear() will be ignored.
no setter
-
Whether to allow sites to show pop-ups. One of
allow: Allow sites to show pop-ups,
block: Don't allow sites to show pop-ups.
Default is block.
The primary URL is the URL of the top-level frame. The secondary URL is
not used.
no setter
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
unsandboxedPlugins
→ ContentSetting
-
Deprecated. Previously, controlled whether to allow sites to run
plugins unsandboxed, however, with the Flash broker process removed in
Chrome 88, this permission no longer has any effect. Value is always
block. Calls to set() and clear() will be ignored.
no setter
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited