Definition
- Namespace:
- Tizen.WebView
- Assembly:
- Tizen.WebView.dll
- API Level:
- 4
A view used to render the web contents.
public class WebView : EvasObject
- Inheritance
-
Constructors
View Source
WebView(EvasObject)
Creates a WebView object.
Declaration
public WebView(EvasObject parent)
Parameters
Type |
Name |
Description |
EvasObject |
parent |
Parent object of the WebView.
|
API Level: 4
Properties
Declaration
public bool HasFocus { get; }
Property Value
API Level: 4
Declaration
public string Title { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 4
Declaration
public string Url { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 4
View Source
UserAgent
Current user agent string of this view.
Declaration
public string UserAgent { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: 4
Methods
View Source
AddJavaScriptMessageHandler(String, JavaScriptMessageHandler)
Injects the supplied javascript message handler into the view.
Declaration
public bool AddJavaScriptMessageHandler(string name, JavaScriptMessageHandler handler)
Parameters
Type |
Name |
Description |
System.String |
name |
The message callback.
|
JavaScriptMessageHandler |
handler |
The name used to expose the object in JavaScript.
|
Returns
Type |
Description |
Boolean |
'true' on success, otherwise 'false'.
|
API Level: 4
View Source
CanGoBack()
Checks whether it is possible to navigate backward one item in history.
Declaration
Returns
Type |
Description |
Boolean |
Whether it is possible to navigate backward one item in history.
|
API Level: 4
View Source
CanGoForward()
Checks whether it is possible to navigate forward one item in history.
Declaration
public bool CanGoForward()
Returns
Type |
Description |
Boolean |
Whether it is possible to navigate forward one item in history.
|
API Level: 4
Declaration
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type |
Name |
Description |
EvasObject |
parent |
Parent EvasObject.
|
Returns
Type |
Description |
IntPtr |
IntPtr of the widget handle.
|
Overrides
API Level: 4
View Source
Eval(String)
Requests the execution of the given script.
Declaration
public void Eval(string script)
Parameters
Type |
Name |
Description |
System.String |
script |
The JavaScript code string to execute.
|
API Level: 4
View Source
EvalWithResult(String, String)
Requests the execution of a given name and the result to the JavaScript runtime.
Declaration
public void EvalWithResult(string name, string result)
Parameters
Type |
Name |
Description |
System.String |
name |
The name used to expose the object in JavaScript.
|
System.String |
result |
The result to the JavaScript runtime.
|
API Level: 4
View Source
GetContext()
Gets the context object of this view.
Declaration
public Context GetContext()
Returns
Type |
Description |
Context |
The context object of this view.
|
API Level: 4
View Source
GetSettings()
Gets the settings object of this view.
Declaration
public Settings GetSettings()
Returns
Type |
Description |
Settings |
The settings object of this view.
|
API Level: 4
View Source
GoBack()
Asks the main frame to navigate back in history.
Declaration
API Level: 4
View Source
GoForward()
Asks the main frame to navigate forward in history.
Declaration
API Level: 4
View Source
LoadHtml(String, String)
Loads the specified HTML string as the content of the view.
Declaration
public void LoadHtml(string html, string baseUrl)
Parameters
Type |
Name |
Description |
System.String |
html |
HTML data to load.
|
System.String |
baseUrl |
Base URL used for relative paths to external objects.
|
API Level: 4
View Source
LoadUrl(String)
Asks the object to load the given URL.
Declaration
public void LoadUrl(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
The uniform resource identifier to load.
|
API Level: 4
View Source
Reload()
Asks the main frame to reload the current document.
Declaration
API Level: 4
View Source
SetFocus(Boolean)
Requests to set or unset a view as the currently focused one.
Declaration
public void SetFocus(bool focused)
Parameters
Type |
Name |
Description |
Boolean |
focused |
'true' to set the focus on the view, 'false' to remove the focus from the view.
|
API Level: 4
View Source
StopLoading()
Asks the main frame to stop loading.
Declaration
public void StopLoading()
API Level: 4
Events
View Source
LoadError
Event that occurs when the load throws an error.
Declaration
public event EventHandler<SmartCallbackLoadErrorArgs> LoadError
Event Type
API Level: 4
View Source
LoadFinished
Event that occurs when the load is finished.
Declaration
public event EventHandler LoadFinished
Event Type
Type |
Description |
System.EventHandler |
|
API Level: 4
View Source
LoadStarted
Event that occurs when the load is started.
Declaration
public event EventHandler LoadStarted
Event Type
Type |
Description |
System.EventHandler |
|
API Level: 4
View Source
TitleChanged
Event that occurs when the title of the main frame is changed.
Declaration
public event EventHandler<SmartCallbackArgs> TitleChanged
Event Type
API Level: 4
View Source
UrlChanged
Event that occurs when the URL of the main frame is changed.
Declaration
public event EventHandler<SmartCallbackArgs> UrlChanged
Event Type
API Level: 4
Extension Methods