Class WebView

    Definition

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

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

    public class WebView : View, INotifyPropertyChanged, IDisposable
    Inheritance
    object
    BindableObject
    Tizen.NUI.Binding.Element
    BaseHandle
    Animatable
    Container
    View
    WebView
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable

    Constructors

    View Source

    WebView()

    Creates a WebView.

    Declaration
    public WebView()
    View Source

    WebView(string[])

    Creates a WebView with an args list.

    Declaration
    public WebView(string[] args)
    Parameters
    Type Name Description
    string[] args

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

    View Source

    WebView(WebView)

    Copy constructor.

    Declaration
    public WebView(WebView webView)
    Parameters
    Type Name Description
    WebView webView

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

    Properties

    View Source

    Favicon

    Gets favicon of web page.

    Declaration
    public ImageView Favicon { get; }
    Property Value
    Type Description
    ImageView
    View Source

    LoadProgressPercentage

    Gets percentage of loading progress.

    Declaration
    public float LoadProgressPercentage { get; }
    Property Value
    Type Description
    float
    View Source

    Title

    Gets title of web page.

    Declaration
    public string Title { get; }
    Property Value
    Type Description
    string
    View Source

    Url

    The URL to load.

    Declaration
    public string Url { get; set; }
    Property Value
    Type Description
    string
    View Source

    UserAgent

    The user agent string.

    Declaration
    public string UserAgent { get; set; }
    Property Value
    Type Description
    string

    Methods

    View Source

    LoadHtmlString(string)

    Loads a html by string.

    Declaration
    public void LoadHtmlString(string data)
    Parameters
    Type Name Description
    string data

    The data of Web

    View Source

    LoadUrl(string)

    Loads a html.

    Declaration
    public void LoadUrl(string url)
    Parameters
    Type Name Description
    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.

    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
    public event EventHandler<WebViewPageLoadErrorEventArgs> PageLoadError
    Event Type
    Type Description
    System.EventHandler<TEventArgs><WebViewPageLoadErrorEventArgs>
    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
    public event EventHandler<WebViewPageLoadEventArgs> PageLoadFinished
    Event Type
    Type Description
    System.EventHandler<TEventArgs><WebViewPageLoadEventArgs>
    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
    public event EventHandler<WebViewPageLoadEventArgs> PageLoading
    Event Type
    Type Description
    System.EventHandler<TEventArgs><WebViewPageLoadEventArgs>
    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
    public event EventHandler<WebViewPageLoadEventArgs> PageLoadStarted
    Event Type
    Type Description
    System.EventHandler<TEventArgs><WebViewPageLoadEventArgs>

    Implements

    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX