Class Context

Definition

Namespace:
Tizen.WebView
Assembly:
Tizen.WebView.dll
API Level:
4

This class encapsulates all the pages related to the specific use of the Chromium-efl.

C#
Copy
public class Context : object
Inheritance
Context
Remarks

Applications have the option of creating a context different from the default one and using it for a group of pages. All pages in the same context share the same preferences, visited link set, local storage, and so on.

Properties

View Source

CacheModel

The cache model.

Declaration
C#
Copy
public CacheModel CacheModel { get; set; }
Property Value
Type Description
CacheModel
Remarks

The default cache model is DocumentViewer.

API Level: 4

Methods

View Source

ClearResourceCache()

Clears HTTP caches in the local storage and all resources cached in memory.

Declaration
C#
Copy
public void ClearResourceCache()
API Level: 6
View Source

GetCookieManager()

Gets the CookieManager object for this context.

Declaration
C#
Copy
public CookieManager GetCookieManager()
Returns
Type Description
CookieManager

The CookieManager object.

API Level: 4
View Source

NotifyLowMemory()

Informs the WebEngine low memory to release unused memory.

Declaration
C#
Copy
public void NotifyLowMemory()
API Level: 6
View Source

SetDownloadRequestDelegate(Context.DownloadRequestDelegate)

Sets the delegate function for download request.

Declaration
C#
Copy
public void SetDownloadRequestDelegate(Context.DownloadRequestDelegate startDownloadCb)
Parameters
Type Name Description
Context.DownloadRequestDelegate startDownloadCb
API Level: 6
View Source

SetInterceptRequestDelegate(Context.InterceptRequestDelegate)

Sets the delegate function for intercepting a resource request.

Declaration
C#
Copy
public void SetInterceptRequestDelegate(Context.InterceptRequestDelegate interceptRequestCb)
Parameters
Type Name Description
Context.InterceptRequestDelegate interceptRequestCb

The delegate function for intercepting a resource request.

API Level: 8
View Source

StartInspectorServer(UInt32)

Starts the inspector server.

Declaration
C#
Copy
public uint StartInspectorServer(uint port)
Parameters
Type Name Description
UInt32 port

The port number.

Returns
Type Description
UInt32
API Level: 8
View Source

StopInspectorServer()

Stops the inspector server.

Declaration
C#
Copy
public void StopInspectorServer()
API Level: 8

Extension Methods