Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
WebContext is a class for context of web view.
public class WebContext : Disposable
- Inheritance
-
Properties
Declaration
public string AppId { get; set; }
Property Value
Declaration
public WebContext.ApplicationType AppType { get; set; }
Property Value
Declaration
public string AppVersion { get; set; }
Property Value
Declaration
public bool CacheEnabled { get; set; }
Property Value
Declaration
public WebContext.CacheModelType CacheModel { get; set; }
Property Value
Declaration
public string CertificateFilePath { get; set; }
Property Value
View Source
ContextProxy
Deprecated. Gets context proxy.
Declaration
public string ContextProxy { get; }
Property Value
Declaration
public float DefaultZoomFactor { get; set; }
Property Value
Declaration
public string ProxyBypassRule { get; }
Property Value
Declaration
public string ProxyUrl { get; set; }
Property Value
Declaration
public float TimeOffset { get; set; }
Property Value
Methods
Declaration
View Source
DeleteAllApplicationCache()
Deletes all application cache.
Declaration
public bool DeleteAllApplicationCache()
Returns
View Source
DeleteAllFormCandidateData()
Deletes all candidate data.
Declaration
public void DeleteAllFormCandidateData()
View Source
DeleteAllFormPasswordData()
Deletes all password data.
Declaration
public void DeleteAllFormPasswordData()
View Source
DeleteAllWebDatabase()
Deletes all web database.
Declaration
public void DeleteAllWebDatabase()
View Source
DeleteAllWebIndexedDatabase()
Deletes all web indexed database.
Declaration
public bool DeleteAllWebIndexedDatabase()
Returns
Declaration
public void DeleteAllWebStorage()
View Source
DeleteApplicationCache(WebSecurityOrigin)
Deletes web application cache by origin.
Declaration
public bool DeleteApplicationCache(WebSecurityOrigin origin)
Parameters
Returns
View Source
DeleteFormPasswordDataList(String[])
Deletes password dataList.
Declaration
public void DeleteFormPasswordDataList(string[] passwords)
Parameters
Type |
Name |
Description |
String[] |
passwords |
The string array of data list
|
View Source
DeleteLocalFileSystem()
Deletes directories and files in local file system.
Declaration
public void DeleteLocalFileSystem()
View Source
DeleteWebDatabase(WebSecurityOrigin)
Deletes web databases by origin.
Declaration
public bool DeleteWebDatabase(WebSecurityOrigin origin)
Parameters
Returns
View Source
DeleteWebStorage(WebSecurityOrigin)
Deletes web storage by origin.
Declaration
public bool DeleteWebStorage(WebSecurityOrigin origin)
Parameters
Returns
View Source
Dispose(DisposeTypes)
Dispose for IDisposable pattern
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Overrides
Declaration
public bool FreeUnusedMemory()
Returns
View Source
GetFormPasswordList(WebContext.PasswordDataListAcquiredCallback)
Gets a list of all password data asynchronously.
Declaration
public void GetFormPasswordList(WebContext.PasswordDataListAcquiredCallback callback)
Parameters
View Source
GetWebDatabaseOrigins(WebContext.SecurityOriginListAcquiredCallback)
Gets security origins of web database asynchronously.
Declaration
public bool GetWebDatabaseOrigins(WebContext.SecurityOriginListAcquiredCallback callback)
Parameters
Returns
View Source
GetWebStorageOrigins(WebContext.SecurityOriginListAcquiredCallback)
Gets a list of security origins of web storage asynchronously.
Declaration
public bool GetWebStorageOrigins(WebContext.SecurityOriginListAcquiredCallback callback)
Parameters
Returns
View Source
GetWebStorageUsageForOrigin(WebSecurityOrigin, WebContext.StorageUsageAcquiredCallback)
Gets a list of security origins of web storage asynchronously.
Declaration
public bool GetWebStorageUsageForOrigin(WebSecurityOrigin origin, WebContext.StorageUsageAcquiredCallback callback)
Parameters
Returns
View Source
RegisterDownloadStartedCallback(WebContext.DownloadStartedCallback)
Registers callback for download started.
Declaration
public void RegisterDownloadStartedCallback(WebContext.DownloadStartedCallback callback)
Parameters
View Source
RegisterHttpRequestInterceptedCallback(WebContext.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
View Source
RegisterJsPluginMimeTypes(String[])
Registers JS plugin mime types.
Declaration
public void RegisterJsPluginMimeTypes(string[] mimes)
Parameters
Type |
Name |
Description |
String[] |
mimes |
The string array of types
|
View Source
RegisterMimeOverriddenCallback(WebContext.MimeOverriddenCallback)
Registers callback for overriding MIME type.
Declaration
public void RegisterMimeOverriddenCallback(WebContext.MimeOverriddenCallback callback)
Parameters
View Source
RegisterUrlSchemesAsCorsEnabled(String[])
Registers URL schemes enabled.
Declaration
public void RegisterUrlSchemesAsCorsEnabled(string[] schemes)
Parameters
Type |
Name |
Description |
String[] |
schemes |
The string array of schemes
|
View Source
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
|
View Source
SetContextTimeZoneOffset(Single, Single)
Deprecated. Sets context time zone offset.
Declaration
public void SetContextTimeZoneOffset(float offset, float time)
Parameters
Type |
Name |
Description |
Single |
offset |
Time offset
|
Single |
time |
Daylight saving time
|
Declaration
public void SetDefaultProxyAuth(string username, string password)
Parameters
Type |
Name |
Description |
String |
username |
Default username for proxy
|
String |
password |
Default password for proxy
|
Declaration
public void SetProxyBypassRule(string proxy, string rule)
Parameters
Type |
Name |
Description |
String |
proxy |
The proxy string
|
String |
rule |
Bypass rule
|
View Source
SetTimeZoneOffset(Single, Single)
Sets context time zone offset.
Declaration
public void SetTimeZoneOffset(float offset, float time)
Parameters
Type |
Name |
Description |
Single |
offset |
Time offset
|
Single |
time |
Daylight saving time
|
Extension Methods