Class WebView

Definition

Namespace:
Tizen.NUI.BaseComponents
Assembly:
Tizen.NUI.dll
API Level:
9

WebView allows presenting content with embedded web browser, both local files and remote websites.

C#
Copy
public class WebView : View, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
Inheritance
System.Object
Tizen.NUI.Binding.Element
WebView
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable

Constructors

View Source

WebView()

Creates a WebView.

Declaration
C#
Copy
public WebView()
API Level: 9
View Source

WebView(String[])

Creates a WebView with an args list.

Declaration
C#
Copy
public WebView(string[] args)
Parameters
Type Name Description
System.String[] args

Arguments passed into web engine. The first value of array must be program's name.

API Level: 9
View Source

WebView(WebView)

Copy constructor.

Declaration
C#
Copy
public WebView(WebView webView)
Parameters
Type Name Description
WebView webView

WebView to copy. The copied WebView will point at the same implementation

API Level: 9

Properties

View Source

Favicon

Gets favicon of web page.

Declaration
C#
Copy
public ImageView Favicon { get; }
Property Value
Type Description
ImageView
API Level: 9
View Source

LoadProgressPercentage

Gets percentage of loading progress.

Declaration
C#
Copy
public float LoadProgressPercentage { get; }
Property Value
Type Description
System.Single
API Level: 9
View Source

Title

Gets title of web page.

Declaration
C#
Copy
public string Title { get; }
Property Value
Type Description
System.String
API Level: 9
View Source

Url

The URL to load.

Declaration
C#
Copy
public string Url { get; set; }
Property Value
Type Description
System.String
API Level: 9
View Source

UserAgent

The user agent string.

Declaration
C#
Copy
public string UserAgent { get; set; }
Property Value
Type Description
System.String
API Level: 9

Methods

View Source

LoadHtmlString(String)

Loads a html by string.

Declaration
C#
Copy
public void LoadHtmlString(string data)
Parameters
Type Name Description
System.String data

The data of Web

API Level: 9
View Source

LoadUrl(String)

Loads a html.

Declaration
C#
Copy
public void LoadUrl(string url)
Parameters
Type Name Description
System.String url

The path of Web

Remarks

The following privileges are required: http://tizen.org/privilege/internet for remote web pages of websites. http://tizen.org/privilege/mediastorage for local files in media storage. http://tizen.org/privilege/externalstorage for local files in external storage.

API Level: 9

Events

View Source

PageLoadError

Event for the PageLoadError signal which can be used to subscribe or unsubscribe the event handler.
This signal is emitted when there's an error in page loading.

Declaration
C#
Copy
public event EventHandler<WebViewPageLoadErrorEventArgs> PageLoadError
Event Type
Type Description
System.EventHandler<WebViewPageLoadErrorEventArgs>
API Level: 9
View Source

PageLoadFinished

Event for the PageLoadFinished signal which can be used to subscribe or unsubscribe the event handler.
This signal is emitted when page loading has finished.

Declaration
C#
Copy
public event EventHandler<WebViewPageLoadEventArgs> PageLoadFinished
Event Type
Type Description
System.EventHandler<WebViewPageLoadEventArgs>
API Level: 9
View Source

PageLoading

Event for the PageLoading signal which can be used to subscribe or unsubscribe the event handler.
This signal is emitted when page loading is in progress.

Declaration
C#
Copy
public event EventHandler<WebViewPageLoadEventArgs> PageLoading
Event Type
Type Description
System.EventHandler<WebViewPageLoadEventArgs>
API Level: 9
View Source

PageLoadStarted

Event for the PageLoadStarted signal which can be used to subscribe or unsubscribe the event handler.
This signal is emitted when page loading has started.

Declaration
C#
Copy
public event EventHandler<WebViewPageLoadEventArgs> PageLoadStarted
Event Type
Type Description
System.EventHandler<WebViewPageLoadEventArgs>
API Level: 9

Implements

System.ComponentModel.INotifyPropertyChanged
System.IDisposable