java.lang.Object | |
↳ | com.tencent.smtt.export.external.interfaces.ServiceWorkerWebSettings |
Manages settings state for all Service Workers. These settings are not tied to the lifetime of any WebView because service workers can outlive WebView instances. The settings are similar to WebSettings but only settings relevant to Service Workers are supported.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ServiceWorkerWebSettings() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
getAllowContentAccess()
Gets whether Service Workers support content URL access.
| ||||||||||
abstract boolean |
getAllowFileAccess()
Gets whether Service Workers support file access.
| ||||||||||
abstract boolean |
getBlockNetworkLoads()
Gets whether Service Workers are prohibited from loading any resources from the network.
| ||||||||||
abstract int |
getCacheMode()
Gets the current setting for overriding the cache mode.
| ||||||||||
abstract void |
setAllowContentAccess(boolean allow)
Enables or disables content URL access from Service Workers,
| ||||||||||
abstract void |
setAllowFileAccess(boolean allow)
Enables or disables file access within Service Workers,
| ||||||||||
abstract void |
setBlockNetworkLoads(boolean flag)
Sets whether Service Workers should not load resources from the network,
| ||||||||||
abstract void |
setCacheMode(int mode)
Overrides the way the cache is used.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Gets whether Service Workers support content URL access.
Gets whether Service Workers support file access.
Gets whether Service Workers are prohibited from loading any resources from the network.
Gets the current setting for overriding the cache mode.
Enables or disables content URL access from Service Workers,
Enables or disables file access within Service Workers,
Sets whether Service Workers should not load resources from the network,
flag | true means block network loads by the Service Workers |
---|
Overrides the way the cache is used.
mode | the mode to use. One of LOAD_DEFAULT ,
LOAD_CACHE_ELSE_NETWORK , LOAD_NO_CACHE
or LOAD_CACHE_ONLY . The default value is
LOAD_DEFAULT .
|
---|