Class WebContext

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll

WebContext is a class for context of web view.

C#
Copy
public class WebContext : Disposable
Inheritance
WebContext

Properties

View Source

AppId

App ID.

Declaration
C#
Copy
public string AppId { get; set; }
Property Value
Type Description
String
View Source

AppType

App type.

Declaration
C#
Copy
public WebContext.ApplicationType AppType { get; set; }
Property Value
Type Description
WebContext.ApplicationType
View Source

AppVersion

App version.

Declaration
C#
Copy
public string AppVersion { get; set; }
Property Value
Type Description
String
View Source

CacheEnabled

Enables cache or not.

Declaration
C#
Copy
public bool CacheEnabled { get; set; }
Property Value
Type Description
Boolean
View Source

CacheModel

Cache model

Declaration
C#
Copy
public WebContext.CacheModelType CacheModel { get; set; }
Property Value
Type Description
WebContext.CacheModelType
View Source

CertificateFilePath

Certificate file path.

Declaration
C#
Copy
public string CertificateFilePath { get; set; }
Property Value
Type Description
String
View Source

ContextProxy

Deprecated. Gets context proxy.

Declaration
C#
Copy
public string ContextProxy { get; }
Property Value
Type Description
String
View Source

DefaultZoomFactor

Default zoom factor.

Declaration
C#
Copy
public float DefaultZoomFactor { get; set; }
Property Value
Type Description
Single
View Source

ProxyBypassRule

Gets proxy bypass rule.

Declaration
C#
Copy
public string ProxyBypassRule { get; }
Property Value
Type Description
String
View Source

ProxyUrl

Proxy URL.

Declaration
C#
Copy
public string ProxyUrl { get; set; }
Property Value
Type Description
String
View Source

TimeOffset

Time offset.

Declaration
C#
Copy
public float TimeOffset { get; set; }
Property Value
Type Description
Single

Methods

View Source

ClearCache()

Clears cache.

Declaration
C#
Copy
public void ClearCache()
View Source

DeleteAllApplicationCache()

Deletes all application cache.

Declaration
C#
Copy
public bool DeleteAllApplicationCache()
Returns
Type Description
Boolean
View Source

DeleteAllFormCandidateData()

Deletes all candidate data.

Declaration
C#
Copy
public void DeleteAllFormCandidateData()
View Source

DeleteAllFormPasswordData()

Deletes all password data.

Declaration
C#
Copy
public void DeleteAllFormPasswordData()
View Source

DeleteAllWebDatabase()

Deletes all web database.

Declaration
C#
Copy
public void DeleteAllWebDatabase()
View Source

DeleteAllWebIndexedDatabase()

Deletes all web indexed database.

Declaration
C#
Copy
public bool DeleteAllWebIndexedDatabase()
Returns
Type Description
Boolean
View Source

DeleteAllWebStorage()

Deletes all web storage.

Declaration
C#
Copy
public void DeleteAllWebStorage()
View Source

DeleteApplicationCache(WebSecurityOrigin)

Deletes web application cache by origin.

Declaration
C#
Copy
public bool DeleteApplicationCache(WebSecurityOrigin origin)
Parameters
Type Name Description
WebSecurityOrigin origin

security origin of web application

Returns
Type Description
Boolean
View Source

DeleteFormPasswordDataList(String[])

Deletes password dataList.

Declaration
C#
Copy
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
C#
Copy
public void DeleteLocalFileSystem()
View Source

DeleteWebDatabase(WebSecurityOrigin)

Deletes web databases by origin.

Declaration
C#
Copy
public bool DeleteWebDatabase(WebSecurityOrigin origin)
Parameters
Type Name Description
WebSecurityOrigin origin

security origin of web database

Returns
Type Description
Boolean
View Source

DeleteWebStorage(WebSecurityOrigin)

Deletes web storage by origin.

Declaration
C#
Copy
public bool DeleteWebStorage(WebSecurityOrigin origin)
Parameters
Type Name Description
WebSecurityOrigin origin

security origin of web storage

Returns
Type Description
Boolean
View Source

Dispose(DisposeTypes)

Dispose for IDisposable pattern

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type
Overrides
View Source

FreeUnusedMemory()

Frees unused memory.

Declaration
C#
Copy
public bool FreeUnusedMemory()
Returns
Type Description
Boolean
View Source

GetFormPasswordList(WebContext.PasswordDataListAcquiredCallback)

Gets a list of all password data asynchronously.

Declaration
C#
Copy
public void GetFormPasswordList(WebContext.PasswordDataListAcquiredCallback callback)
Parameters
Type Name Description
WebContext.PasswordDataListAcquiredCallback callback

callback for acquiring password data list

View Source

GetWebDatabaseOrigins(WebContext.SecurityOriginListAcquiredCallback)

Gets security origins of web database asynchronously.

Declaration
C#
Copy
public bool GetWebDatabaseOrigins(WebContext.SecurityOriginListAcquiredCallback callback)
Parameters
Type Name Description
WebContext.SecurityOriginListAcquiredCallback callback

callback for acquiring security origins

Returns
Type Description
Boolean
View Source

GetWebStorageOrigins(WebContext.SecurityOriginListAcquiredCallback)

Gets a list of security origins of web storage asynchronously.

Declaration
C#
Copy
public bool GetWebStorageOrigins(WebContext.SecurityOriginListAcquiredCallback callback)
Parameters
Type Name Description
WebContext.SecurityOriginListAcquiredCallback callback

callback for acquiring security origins

Returns
Type Description
Boolean
View Source

GetWebStorageUsageForOrigin(WebSecurityOrigin, WebContext.StorageUsageAcquiredCallback)

Gets a list of security origins of web storage asynchronously.

Declaration
C#
Copy
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
Boolean
View Source

RegisterDownloadStartedCallback(WebContext.DownloadStartedCallback)

Registers callback for download started.

Declaration
C#
Copy
public void RegisterDownloadStartedCallback(WebContext.DownloadStartedCallback callback)
Parameters
Type Name Description
WebContext.DownloadStartedCallback callback

callback for download started

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
C#
Copy
public void RegisterHttpRequestInterceptedCallback(WebContext.HttpRequestInterceptedCallback callback)
Parameters
Type Name Description
WebContext.HttpRequestInterceptedCallback callback

callback for intercepting http request

View Source

RegisterJsPluginMimeTypes(String[])

Registers JS plugin mime types.

Declaration
C#
Copy
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
C#
Copy
public void RegisterMimeOverriddenCallback(WebContext.MimeOverriddenCallback callback)
Parameters
Type Name Description
WebContext.MimeOverriddenCallback callback

callback for overriding MIME type

View Source

RegisterUrlSchemesAsCorsEnabled(String[])

Registers URL schemes enabled.

Declaration
C#
Copy
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
C#
Copy
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
C#
Copy
public void SetContextTimeZoneOffset(float offset, float time)
Parameters
Type Name Description
Single offset

Time offset

Single time

Daylight saving time

View Source

SetDefaultProxyAuth(String, String)

Sets default proxy auth.

Declaration
C#
Copy
public void SetDefaultProxyAuth(string username, string password)
Parameters
Type Name Description
String username

Default username for proxy

String password

Default password for proxy

View Source

SetProxyBypassRule(String, String)

Sets proxy bypass rule.

Declaration
C#
Copy
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
C#
Copy
public void SetTimeZoneOffset(float offset, float time)
Parameters
Type Name Description
Single offset

Time offset

Single time

Daylight saving time

Extension Methods