Class WebContext
Definition
- Assembly:
- Tizen.NUI.dll
WebContext is a class for context of web view.
public class WebContext : Disposable
- Inheritance
Properties
View SourceAppId
App ID.
Declaration
public string AppId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
AppType
App type.
Declaration
public WebContext.ApplicationType AppType { get; set; }
Property Value
| Type | Description |
|---|---|
| WebContext.ApplicationType |
AppVersion
App version.
Declaration
public string AppVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CacheEnabled
Enables cache or not.
Declaration
public bool CacheEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CacheModel
Cache model
Declaration
public WebContext.CacheModelType CacheModel { get; set; }
Property Value
| Type | Description |
|---|---|
| WebContext.CacheModelType |
CertificateFilePath
Certificate file path.
Declaration
public string CertificateFilePath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ContextProxy
Deprecated. Gets context proxy.
Declaration
public string ContextProxy { get; }
Property Value
| Type | Description |
|---|---|
| string |
DefaultZoomFactor
Default zoom factor.
Declaration
public float DefaultZoomFactor { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
ProxyBypassRule
Gets proxy bypass rule.
Declaration
public string ProxyBypassRule { get; }
Property Value
| Type | Description |
|---|---|
| string |
ProxyUrl
Proxy URL.
Declaration
public string ProxyUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TimeOffset
Time offset.
Declaration
public float TimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
View SourceClearCache()
Clears cache.
Declaration
public void ClearCache()
DeleteAllApplicationCache()
Deletes all application cache.
Declaration
public bool DeleteAllApplicationCache()
Returns
| Type | Description |
|---|---|
| bool |
DeleteAllFormCandidateData()
Deletes all candidate data.
Declaration
public void DeleteAllFormCandidateData()
DeleteAllFormPasswordData()
Deletes all password data.
Declaration
public void DeleteAllFormPasswordData()
DeleteAllWebDatabase()
Deletes all web database.
Declaration
public void DeleteAllWebDatabase()
DeleteAllWebIndexedDatabase()
Deletes all web indexed database.
Declaration
public bool DeleteAllWebIndexedDatabase()
Returns
| Type | Description |
|---|---|
| bool |
DeleteAllWebStorage()
Deletes all web storage.
Declaration
public void DeleteAllWebStorage()
DeleteApplicationCache(WebSecurityOrigin)
Deletes web application cache by origin.
Declaration
public bool DeleteApplicationCache(WebSecurityOrigin origin)
Parameters
| Type | Name | Description |
|---|---|---|
| WebSecurityOrigin | origin | security origin of web application |
Returns
| Type | Description |
|---|---|
| bool |
DeleteFormPasswordDataList(string[])
Deletes password dataList.
Declaration
public void DeleteFormPasswordDataList(string[] passwords)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | passwords | The string array of data list |
DeleteLocalFileSystem()
Deletes directories and files in local file system.
Declaration
public void DeleteLocalFileSystem()
DeleteWebDatabase(WebSecurityOrigin)
Deletes web databases by origin.
Declaration
public bool DeleteWebDatabase(WebSecurityOrigin origin)
Parameters
| Type | Name | Description |
|---|---|---|
| WebSecurityOrigin | origin | security origin of web database |
Returns
| Type | Description |
|---|---|
| bool |
DeleteWebStorage(WebSecurityOrigin)
Deletes web storage by origin.
Declaration
public bool DeleteWebStorage(WebSecurityOrigin origin)
Parameters
| Type | Name | Description |
|---|---|---|
| WebSecurityOrigin | origin | security origin of web storage |
Returns
| Type | Description |
|---|---|
| bool |
Dispose(DisposeTypes)
Dispose for IDisposable pattern
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type |
Overrides
View SourceFreeUnusedMemory()
Frees unused memory.
Declaration
public bool FreeUnusedMemory()
Returns
| Type | Description |
|---|---|
| bool |
GetFormPasswordList(PasswordDataListAcquiredCallback)
Gets a list of all password data asynchronously.
Declaration
public void GetFormPasswordList(WebContext.PasswordDataListAcquiredCallback callback)
Parameters
| Type | Name | Description |
|---|---|---|
| WebContext.PasswordDataListAcquiredCallback | callback | callback for acquiring password data list |
GetWebDatabaseOrigins(SecurityOriginListAcquiredCallback)
Gets security origins of web database asynchronously.
Declaration
public bool GetWebDatabaseOrigins(WebContext.SecurityOriginListAcquiredCallback callback)
Parameters
| Type | Name | Description |
|---|---|---|
| WebContext.SecurityOriginListAcquiredCallback | callback | callback for acquiring security origins |
Returns
| Type | Description |
|---|---|
| bool |
GetWebStorageOrigins(SecurityOriginListAcquiredCallback)
Gets a list of security origins of web storage asynchronously.
Declaration
public bool GetWebStorageOrigins(WebContext.SecurityOriginListAcquiredCallback callback)
Parameters
| Type | Name | Description |
|---|---|---|
| WebContext.SecurityOriginListAcquiredCallback | callback | callback for acquiring security origins |
Returns
| Type | Description |
|---|---|
| bool |
GetWebStorageUsageForOrigin(WebSecurityOrigin, StorageUsageAcquiredCallback)
Gets a list of security origins of web storage asynchronously.
Declaration
public bool GetWebStorageUsageForOrigin(WebSecurityOrigin origin, WebContext.StorageUsageAcquiredCallback callback)
Parameters
| Type | Name | Description |
|---|---|---|
| WebSecurityOrigin | origin | security origin of web storage |
| WebContext.StorageUsageAcquiredCallback | callback | callback for acquiring storage usage |
Returns
| Type | Description |
|---|---|
| bool |
RegisterDownloadStartedCallback(DownloadStartedCallback)
Registers callback for download started.
Declaration
public void RegisterDownloadStartedCallback(WebContext.DownloadStartedCallback callback)
Parameters
| Type | Name | Description |
|---|---|---|
| WebContext.DownloadStartedCallback | callback | callback for download started |
RegisterHttpRequestInterceptedCallback(HttpRequestInterceptedCallback)
Registers callback for http request interceptor. This callback is not called on UI(Main) thread, so users should be cautious when accessing their data also used on UI thread. No other than WebEngineRequestInterceptor API should be used in the callback.
Declaration
public void RegisterHttpRequestInterceptedCallback(WebContext.HttpRequestInterceptedCallback callback)
Parameters
| Type | Name | Description |
|---|---|---|
| WebContext.HttpRequestInterceptedCallback | callback | callback for intercepting http request |
RegisterJsPluginMimeTypes(string[])
Registers JS plugin mime types.
Declaration
public void RegisterJsPluginMimeTypes(string[] mimes)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | mimes | The string array of types |
RegisterMimeOverriddenCallback(MimeOverriddenCallback)
Registers callback for overriding MIME type.
Declaration
public void RegisterMimeOverriddenCallback(WebContext.MimeOverriddenCallback callback)
Parameters
| Type | Name | Description |
|---|---|---|
| WebContext.MimeOverriddenCallback | callback | callback for overriding MIME type |
RegisterUrlSchemesAsCorsEnabled(string[])
Registers URL schemes enabled.
Declaration
public void RegisterUrlSchemesAsCorsEnabled(string[] schemes)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | schemes | The string array of schemes |
SetContextProxy(string, string)
Deprecated. Sets proxy bypass rule.
Declaration
public void SetContextProxy(string proxy, string rule)
Parameters
| Type | Name | Description |
|---|---|---|
| string | proxy | The proxy string |
| string | rule | Bypass rule |
SetContextTimeZoneOffset(float, float)
Deprecated. Sets context time zone offset.
Declaration
public void SetContextTimeZoneOffset(float offset, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| float | offset | Time offset |
| float | time | Daylight saving time |
SetDefaultProxyAuth(string, string)
Sets default proxy auth.
Declaration
public void SetDefaultProxyAuth(string username, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | Default username for proxy |
| string | password | Default password for proxy |
SetProxyBypassRule(string, string)
Sets proxy bypass rule.
Declaration
public void SetProxyBypassRule(string proxy, string rule)
Parameters
| Type | Name | Description |
|---|---|---|
| string | proxy | The proxy string |
| string | rule | Bypass rule |
SetTimeZoneOffset(float, float)
Sets context time zone offset.
Declaration
public void SetTimeZoneOffset(float offset, float time)
Parameters
| Type | Name | Description |
|---|---|---|
| float | offset | Time offset |
| float | time | Daylight saving time |