Class WebView
Definition
- Assembly:
- Tizen.WebView.dll
A view used to render the web contents.
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12. The WebView provided by .NET MAUI or Tizen.NUI can be used instead.")] public class WebView : EvasObject
- Inheritance
Constructors
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public WebView(EvasObject parent)
Parameters
| Type | Name | Description |
|---|---|---|
| EvasObject | parent | Parent object of the WebView. |
Properties
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public Size ContentsSize { get; }
Property Value
| Type | Description |
|---|---|
| Size | size of the coordinate. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public bool HasFocus { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public double LoadProgress { get; }
Property Value
| Type | Description |
|---|---|
| double | 'value 0.0 to 1.0' on success, otherwise '-1.0'. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public double Scale { get; }
Property Value
| Type | Description |
|---|---|
| double |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public Point ScrollPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| Point | The class Point object with X, Y coordinates. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public string Title { get; }
Property Value
| Type | Description |
|---|---|
| string |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public string Url { get; }
Property Value
| Type | Description |
|---|---|
| string |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public string UserAgent { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
AddJavaScriptMessageHandler(string, JavaScriptMessageHandler)
Injects the supplied javascript message handler into the view.
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public bool AddJavaScriptMessageHandler(string name, JavaScriptMessageHandler handler)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The message callback. |
| JavaScriptMessageHandler | handler | The name used to expose the object in JavaScript. |
Returns
| Type | Description |
|---|---|
| bool | 'true' on success, otherwise 'false'. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public bool CanGoBack()
Returns
| Type | Description |
|---|---|
| bool | Whether it is possible to navigate backward one item in history. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public bool CanGoForward()
Returns
| Type | Description |
|---|---|
| bool | Whether it is possible to navigate forward one item in history. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void ClearBackForwardList()
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] protected override IntPtr CreateHandle(EvasObject parent)
Parameters
| Type | Name | Description |
|---|---|---|
| EvasObject | parent | Parent EvasObject. |
Returns
| Type | Description |
|---|---|
| System.IntPtr | IntPtr of the widget handle. |
Overrides
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void Eval(string script)
Parameters
| Type | Name | Description |
|---|---|---|
| string | script | The JavaScript code string to execute. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public Task<string> EvalAsync(string script)
Parameters
| Type | Name | Description |
|---|---|---|
| string | script | The JavaScript code string to evaluate. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><string> | A task that contains the result of the evaluation as a string. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when a script is null or empty string. |
EvalWithResult(string, string)
Requests the execution of a given name and the result to the JavaScript runtime.
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void EvalWithResult(string name, string result)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name used to expose the object in JavaScript. |
| string | result | The result to the JavaScript runtime. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void ExitFullscreen()
FindText(string, FindOption, int)
Searches and highlights the given text string in the document.
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void FindText(string text, FindOption option, int maxMatchCount)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text to find. |
| FindOption | option | The options to find. |
| int | maxMatchCount | The maximum match count to find, unlimited if 0. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public BackForwardList GetBackForwardList()
Returns
| Type | Description |
|---|---|
| BackForwardList | The BackForward List object of this view. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public Context GetContext()
Returns
| Type | Description |
|---|---|
| Context | The context object of this view. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public Settings GetSettings()
Returns
| Type | Description |
|---|---|
| Settings | The settings object of this view. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void GoBack()
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void GoForward()
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void LoadHtml(string html, string baseUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| string | html | HTML data to load. |
| string | baseUrl | Base URL used for relative paths to external objects. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void LoadUrl(string url)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The uniform resource identifier to load. |
Remarks
You can only be sure that the URL changes after UrlChanged event.
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void Reload()
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void Resume()
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void ScrollBy(Point delta)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | delta | The class Point object with X, Y coordinates. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void SendOrientation(Orientation orientation)
Parameters
| Type | Name | Description |
|---|---|---|
| Orientation | orientation | The new orientation of the device in degree. |
SetContextMenuCustomizeDelegate(ContextMenuCustomize)
Sets the delegate for context menu customization.
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void SetContextMenuCustomizeDelegate(WebView.ContextMenuCustomize contextMenuCustomizeDelegate)
Parameters
| Type | Name | Description |
|---|---|---|
| WebView.ContextMenuCustomize | contextMenuCustomizeDelegate | The delegate for context menu customization. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void SetFocus(bool focused)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | focused | 'true' to set the focus on the view, 'false' to remove the focus from the view. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void SetScale(double scaleFactor, Point scrollTo)
Parameters
| Type | Name | Description |
|---|---|---|
| double | scaleFactor | A new level to set. |
| Point | scrollTo | The class Point object with X, Y coordinates. |
SetUrlRequest(string, HttpMethod, IDictionary<string, string>, string)
Requests loading of the given request data.
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void SetUrlRequest(string url, HttpMethod httpMethod, IDictionary<string, string> httpHeaders, string httpBody)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The uniform resource identifier to load. |
| HttpMethod | httpMethod | The http method. |
| System.Collections.Generic.IDictionary<TKey, TValue><string, string> | httpHeaders | The http headers. |
| string | httpBody | The http body data. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void SetViewVisibility(bool enable)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | enable | 'true' to set on the visibility of the page, 'false' otherwise. |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void StopLoading()
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public void Suspend()
Events
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public event EventHandler<ContextMenuItemEventArgs> ContextMenuItemSelected
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><ContextMenuItemEventArgs> |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public event EventHandler<SmartCallbackLoadErrorArgs> LoadError
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><SmartCallbackLoadErrorArgs> |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public event EventHandler LoadFinished
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public event EventHandler LoadStarted
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
NavigationPolicyDecideRequested
Event that occurs when the policy navigation is decided.
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public event EventHandler<NavigationPolicyEventArgs> NavigationPolicyDecideRequested
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><NavigationPolicyEventArgs> |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public event EventHandler<NewWindowPolicyEventArgs> NewWindowPolicyDecideRequested
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><NewWindowPolicyEventArgs> |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public event EventHandler<ResponsePolicyEventArgs> ResponsePolicyDecideRequested
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><ResponsePolicyEventArgs> |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public event EventHandler<SmartCallbackArgs> TitleChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><SmartCallbackArgs> |
Declaration
C#Copy[Obsolete("Deprecated since API Level 10. Will be removed in API Level 12.")] public event EventHandler<SmartCallbackArgs> UrlChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><SmartCallbackArgs> |