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, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    WebView
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    WebView()

    Default constructor to create a WebView.

    Declaration
    public WebView()
    View Source

    WebView(string, string)

    Creates a WebView with locale and time-zone.

    Declaration
    public WebView(string locale, string timezoneId)
    Parameters
    Type Name Description
    string locale

    The specified locale

    string timezoneId

    The specified time-zone ID

    View Source

    WebView(string[], WebEngineType)

    Creates a WebView with an args list and WebEngine type.

    Declaration
    public WebView(string[] args, WebView.WebEngineType webEngineType)
    Parameters
    Type Name Description
    string[] args

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

    WebView.WebEngineType webEngineType

    Can select the plugin of Web Engine type. Chromium or LWE.

    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

    Fields

    View Source

    CacheModelProperty

    CacheModelProperty

    Declaration
    public static readonly BindableProperty CacheModelProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    CookieAcceptPolicyProperty

    CookieAcceptPolicyProperty

    Declaration
    public static readonly BindableProperty CookieAcceptPolicyProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    DefaultFontSizeProperty

    DefaultFontSizeProperty

    Declaration
    public static readonly BindableProperty DefaultFontSizeProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    DefaultTextEncodingNameProperty

    DefaultTextEncodingNameProperty

    Declaration
    public static readonly BindableProperty DefaultTextEncodingNameProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    EnableJavaScriptProperty

    EnableJavaScriptProperty

    Declaration
    public static readonly BindableProperty EnableJavaScriptProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    LoadImagesAutomaticallyProperty

    LoadImagesAutomaticallyProperty

    Declaration
    public static readonly BindableProperty LoadImagesAutomaticallyProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    BackForwardList

    BackForwardList.

    Declaration
    public WebBackForwardList BackForwardList { get; }
    Property Value
    Type Description
    WebBackForwardList
    View Source

    CacheModel

    Deprecated. The cache model of the current WebView.

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

    ContentBackgroundColor

    Background color of web page. Please note that it only works after LoadUrl, etc.

    Declaration
    public Color ContentBackgroundColor { get; set; }
    Property Value
    Type Description
    Color
    View Source

    ContentSize

    The size of content, read-only.

    Declaration
    public Size ContentSize { get; }
    Property Value
    Type Description
    Size
    View Source

    Context

    Context.

    Declaration
    public WebContext Context { get; }
    Property Value
    Type Description
    WebContext
    View Source

    CookieAcceptPolicy

    Deprecated. The cookie acceptance policy.

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

    CookieManager

    CookieManager.

    Declaration
    public WebCookieManager CookieManager { get; }
    Property Value
    Type Description
    WebCookieManager
    View Source

    CursorEnabledByClient

    Whether cursor is enabled or not by client.

    Declaration
    public bool CursorEnabledByClient { get; set; }
    Property Value
    Type Description
    bool
    View Source

    DefaultFontSize

    The default font size in pixel.

    Declaration
    public int DefaultFontSize { get; set; }
    Property Value
    Type Description
    int
    View Source

    DefaultTextEncodingName

    The default text encoding name.
    e.g. "UTF-8"

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

    EnableJavaScript

    Deprecated. Whether JavaScript is enabled.

    Declaration
    public bool EnableJavaScript { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Favicon

    Gets favicon of web page.

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

    KeyEventsEnabled

    Whether key events are enabled or not.

    Declaration
    public bool KeyEventsEnabled { get; set; }
    Property Value
    Type Description
    bool
    View Source

    LoadImagesAutomatically

    Deprecated. Whether images can be loaded automatically.

    Declaration
    public bool LoadImagesAutomatically { get; set; }
    Property Value
    Type Description
    bool
    View Source

    LoadProgressPercentage

    Gets percentage of loading progress.

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

    MouseEventsEnabled

    Whether mouse events are enabled or not.

    Declaration
    public bool MouseEventsEnabled { get; set; }
    Property Value
    Type Description
    bool
    View Source

    PageZoomFactor

    Zoom factor of web page.

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

    ScrollPosition

    The position of scroll.

    Declaration
    public Position ScrollPosition { get; set; }
    Property Value
    Type Description
    Position
    View Source

    ScrollSize

    The size of scroll, read-only.

    Declaration
    public Size ScrollSize { get; }
    Property Value
    Type Description
    Size
    View Source

    SelectedText

    Gets selected text in web page.

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

    Settings

    BackForwardList.

    Declaration
    public WebSettings Settings { get; }
    Property Value
    Type Description
    WebSettings
    View Source

    TextZoomFactor

    Zoom factor of text in web page.

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

    TileCoverAreaMultiplier

    Multiplier of cover area of tile when web page is rendered.

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

    TilesClearedWhenHidden

    Whether tiles are cleared or not when hidden.

    Declaration
    public bool TilesClearedWhenHidden { get; set; }
    Property Value
    Type Description
    bool
    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
    View Source

    VideoHoleEnabled

    Whether video hole is enabled or not.

    Declaration
    public bool VideoHoleEnabled { get; set; }
    Property Value
    Type Description
    bool

    Methods

    View Source

    ActivateAccessibility(bool)

    Requests to activate/deactivate the accessibility usage set by web app.

    Declaration
    public void ActivateAccessibility(bool activated)
    Parameters
    Type Name Description
    bool activated

    The new factor to be scaled

    View Source

    AddCustomHeader(string, string)

    Adds custom header.

    Declaration
    public bool AddCustomHeader(string name, string value)
    Parameters
    Type Name Description
    string name

    The name of custom header

    string value

    The value of custom header

    Returns
    Type Description
    bool
    View Source

    AddDynamicCertificatePath(string, string)

    Adds dynamic certificate path.

    Declaration
    public void AddDynamicCertificatePath(string host, string certPath)
    Parameters
    Type Name Description
    string host

    Host that required client authentication

    string certPath

    The file path stored certificate

    View Source

    AddJavaScriptMessageHandler(string, JavaScriptEntireMessageHandler)

    Add a message handler into the WebView.

    Declaration
    public void AddJavaScriptMessageHandler(string objectName, WebView.JavaScriptEntireMessageHandler handler)
    Parameters
    Type Name Description
    string objectName

    The name of exposed object

    WebView.JavaScriptEntireMessageHandler handler

    The callback function

    View Source

    AddJavaScriptMessageHandler(string, JavaScriptMessageHandler)

    Add a message handler into the WebView.

    Declaration
    public void AddJavaScriptMessageHandler(string objectName, WebView.JavaScriptMessageHandler handler)
    Parameters
    Type Name Description
    string objectName

    The name of exposed object

    WebView.JavaScriptMessageHandler handler

    The callback function

    View Source

    CanGoBack()

    Returns whether backward is possible.

    Declaration
    public bool CanGoBack()
    Returns
    Type Description
    bool

    True if backward is possible, false otherwise

    View Source

    CanGoForward()

    Returns whether forward is possible.

    Declaration
    public bool CanGoForward()
    Returns
    Type Description
    bool

    True if forward is possible, false otherwise

    View Source

    ChangeOrientation(WindowOrientation)

    Change orientation.

    Declaration
    public void ChangeOrientation(Window.WindowOrientation orientation)
    Parameters
    Type Name Description
    Window.WindowOrientation orientation
    View Source

    CheckVideoPlayingAsynchronously(VideoPlayingCallback)

    Asynchronously requests to check if there is a video playing in the given view.

    Declaration
    public bool CheckVideoPlayingAsynchronously(WebView.VideoPlayingCallback callback)
    Parameters
    Type Name Description
    WebView.VideoPlayingCallback callback

    The callback called after checking if video is playing or not

    Returns
    Type Description
    bool
    View Source

    ClearAllTilesResources()

    Clears title resources of current WebView.

    Declaration
    public void ClearAllTilesResources()
    View Source

    ClearCache()

    Deprecated. Clears the cache of current WebView.

    Declaration
    public void ClearCache()
    View Source

    ClearCookies()

    Deprecated. Clears all the cookies of current WebView.

    Declaration
    public void ClearCookies()
    View Source

    ClearHistory()

    Clears the history of current WebView.

    Declaration
    public void ClearHistory()
    View Source

    Dispose(DisposeTypes)

    Dispose for IDisposable pattern

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type
    Overrides
    View.Dispose(DisposeTypes)
    View Source

    EvaluateJavaScript(string, JavaScriptMessageHandler)

    Evaluates JavaScript code represented as a string. If EvaluateJavaScript is called many times, its argument 'handler' callback would be called not sequentially. A possible call sequence is like:

    1. webview.EvaluateJavaScript("abc", handler1),
    2. webview.EvaluateJavaScript("def", handler2),
    3. handle2 would be called,
    4. handle2 would be called, handler1 would not be called any more.
    Declaration
    public void EvaluateJavaScript(string script, WebView.JavaScriptMessageHandler handler)
    Parameters
    Type Name Description
    string script

    The JavaScript code

    WebView.JavaScriptMessageHandler handler

    The callback for result of JavaScript code evaluation

    View Source

    EvaluateJavaScript(string)

    Evaluates JavaScript code represented as a string.

    Declaration
    public void EvaluateJavaScript(string script)
    Parameters
    Type Name Description
    string script

    The JavaScript code

    View Source

    ExitFullscreen()

    Exit fullscreen.

    Declaration
    public void ExitFullscreen()
    View Source

    FeedMouseWheel(bool, int, int, int)

    Feed mouse wheel event forcefully.

    Declaration
    public void FeedMouseWheel(bool yDirection, int step, int x, int y)
    Parameters
    Type Name Description
    bool yDirection
    int step
    int x
    int y
    View Source

    GetPlainTextAsynchronously(PlainTextReceivedCallback)

    Get a plain text of current web page asynchronously. Please note that it gets plain text of currently loaded page so please call this method after page load finished.

    Declaration
    public void GetPlainTextAsynchronously(WebView.PlainTextReceivedCallback callback)
    Parameters
    Type Name Description
    WebView.PlainTextReceivedCallback callback

    The callback for getting plain text

    View Source

    GetScaleFactor()

    Gets the current scale factor of the page.

    Declaration
    public float GetScaleFactor()
    Returns
    Type Description
    float
    View Source

    GetScreenshot(Rectangle, float)

    Get snapshot of the specified viewArea of page.

    Declaration
    public ImageView GetScreenshot(Rectangle viewArea, float scaleFactor)
    Parameters
    Type Name Description
    Rectangle viewArea

    Host that required client authentication

    float scaleFactor

    The file path stored certificate

    Returns
    Type Description
    ImageView
    View Source

    GetScreenshotAsynchronously(Rectangle, float, ScreenshotAcquiredCallback)

    Get snapshot of the specified viewArea of page.

    Declaration
    public bool GetScreenshotAsynchronously(Rectangle viewArea, float scaleFactor, WebView.ScreenshotAcquiredCallback callback)
    Parameters
    Type Name Description
    Rectangle viewArea

    Host that required client authentication

    float scaleFactor

    The file path stored certificate

    WebView.ScreenshotAcquiredCallback callback

    The callback for getting screen shot

    Returns
    Type Description
    bool
    View Source

    GoBack()

    Goes to the back

    Declaration
    public void GoBack()
    View Source

    GoForward()

    Goes to the forward

    Declaration
    public void GoForward()
    View Source

    HighlightText(string, FindOption, uint)

    Searches and highlights the given string in the document.

    Declaration
    public bool HighlightText(string text, WebView.FindOption options, uint maxMatchCount)
    Parameters
    Type Name Description
    string text

    The text to be searched

    WebView.FindOption options

    The options to search

    uint maxMatchCount

    The maximum match count to search

    Returns
    Type Description
    bool
    View Source

    HitTest(int, int, HitTestMode)

    Does hit test synchronously.

    Declaration
    public WebHitTestResult HitTest(int x, int y, WebView.HitTestMode mode)
    Parameters
    Type Name Description
    int x

    the horizontal position to query

    int y

    the vertical position to query

    WebView.HitTestMode mode

    the mode of hit test

    Returns
    Type Description
    WebHitTestResult
    View Source

    HitTestAsynchronously(int, int, HitTestMode, HitTestFinishedCallback)

    Does hit test asynchronously.

    Declaration
    public bool HitTestAsynchronously(int x, int y, WebView.HitTestMode mode, WebView.HitTestFinishedCallback callback)
    Parameters
    Type Name Description
    int x

    the horizontal position to query

    int y

    the vertical position to query

    WebView.HitTestMode mode

    the mode of hit test

    WebView.HitTestFinishedCallback callback

    the callback that is called after hit test is finished.

    Returns
    Type Description
    bool
    View Source

    JavaScriptAlertReply()

    Reply for alert popup.

    Declaration
    public void JavaScriptAlertReply()
    View Source

    JavaScriptConfirmReply(bool)

    Reply for confirm popup.

    Declaration
    public void JavaScriptConfirmReply(bool confirmed)
    Parameters
    Type Name Description
    bool confirmed

    Confirmed or not

    View Source

    JavaScriptPromptReply(string)

    Reply for prompt popup.

    Declaration
    public void JavaScriptPromptReply(string result)
    Parameters
    Type Name Description
    string result

    Text in prompt input field.

    View Source

    LoadContents(byte[], string, string, string)

    Requests to load the given contents by MIME type.

    Declaration
    public bool LoadContents(byte[] contents, string mimeType, string encoding, string baseUri)
    Parameters
    Type Name Description
    byte[] contents

    The contents to be loaded in bytes

    string mimeType

    The type of contents, "text/html" is assumed if null

    string encoding

    The encoding for contents, "UTF-8" is assumed if null

    string baseUri

    The base URI to use for relative resources

    Returns
    Type Description
    bool
    View Source

    LoadContents(string, uint, string, string, string)

    Requests to load the given contents by MIME type.

    Declaration
    public bool LoadContents(string contents, uint contentSize, string mimeType, string encoding, string baseUri)
    Parameters
    Type Name Description
    string contents

    The contents to be loaded. For UTF-8 encoding, contents would be got like System.Text.Encoding.UTF8.GetString(...)

    uint contentSize

    The size of contents (in bytes)

    string mimeType

    The type of contents, "text/html" is assumed if null

    string encoding

    The encoding for contents, "UTF-8" is assumed if null

    string baseUri

    The base URI to use for relative resources

    Returns
    Type Description
    bool
    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

    LoadHTMLString(string)

    Deprecated. Loads a html by string.

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

    The data of Web

    View Source

    LoadHtmlStringOverrideCurrentEntry(string, string, string)

    Loads the specified html as the content of the view to override current history entry.

    Declaration
    public bool LoadHtmlStringOverrideCurrentEntry(string html, string baseUri, string unreachableUri)
    Parameters
    Type Name Description
    string html

    The html to be loaded

    string baseUri

    Base URL used for relative paths to external objects

    string unreachableUri

    URL that could not be reached

    Returns
    Type Description
    bool
    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.

    View Source

    RegisterGeolocationPermissionCallback(GeolocationPermissionCallback)

    Registers callback which will be called upon geolocation permission request.

    Declaration
    public void RegisterGeolocationPermissionCallback(WebView.GeolocationPermissionCallback callback)
    Parameters
    Type Name Description
    WebView.GeolocationPermissionCallback callback

    The callback for requesting geolocation permission

    View Source

    RegisterJavaScriptAlertCallback(JavaScriptAlertCallback)

    Registers a callback for JS alert.

    Declaration
    public void RegisterJavaScriptAlertCallback(WebView.JavaScriptAlertCallback callback)
    Parameters
    Type Name Description
    WebView.JavaScriptAlertCallback callback

    The callback function

    View Source

    RegisterJavaScriptConfirmCallback(JavaScriptConfirmCallback)

    Registers a callback for JS confirm.

    Declaration
    public void RegisterJavaScriptConfirmCallback(WebView.JavaScriptConfirmCallback callback)
    Parameters
    Type Name Description
    WebView.JavaScriptConfirmCallback callback

    The callback function

    View Source

    RegisterJavaScriptPromptCallback(JavaScriptPromptCallback)

    Registers a callback for JS promt.

    Declaration
    public void RegisterJavaScriptPromptCallback(WebView.JavaScriptPromptCallback callback)
    Parameters
    Type Name Description
    WebView.JavaScriptPromptCallback callback

    The callback function

    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    View.ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)
    View Source

    Reload()

    Reloads the Web

    Declaration
    public void Reload()
    View Source

    ReloadWithoutCache()

    Reloads the current page's document without cache

    Declaration
    public bool ReloadWithoutCache()
    Returns
    Type Description
    bool
    View Source

    RemoveCustomHeader(string)

    Removes custom header.

    Declaration
    public bool RemoveCustomHeader(string name)
    Parameters
    Type Name Description
    string name

    The name of custom header

    Returns
    Type Description
    bool
    View Source

    Resume()

    Resumes the operation after calling Suspend()

    Declaration
    public void Resume()
    View Source

    ResumeNetworkLoading()

    Resumes all network loading.

    Declaration
    public void ResumeNetworkLoading()
    View Source

    ScrollBy(int, int)

    Scrolls page of web view by deltaX and detlaY.

    Declaration
    public void ScrollBy(int deltaX, int deltaY)
    Parameters
    Type Name Description
    int deltaX

    The deltaX of scroll

    int deltaY

    The deltaY of scroll

    View Source

    ScrollEdgeBy(int, int)

    Scrolls edge of web view by deltaX and deltaY.

    Declaration
    public bool ScrollEdgeBy(int deltaX, int deltaY)
    Parameters
    Type Name Description
    int deltaX

    The deltaX of scroll

    int deltaY

    The deltaY of scroll

    Returns
    Type Description
    bool
    View Source

    SetCursorThemeName(string)

    Set the theme name of cursor.

    Declaration
    public void SetCursorThemeName(string themeName)
    Parameters
    Type Name Description
    string themeName

    The theme name of cursor

    View Source

    SetDeviceListGetCallback(WebViewDeviceListGetCallback)

    Set a callback method in this method to receive the list of currently connected devices

    Declaration
    public void SetDeviceListGetCallback(WebView.WebViewDeviceListGetCallback callback)
    Parameters
    Type Name Description
    WebView.WebViewDeviceListGetCallback callback

    The callback to get the device list

    View Source

    SetImePositionAndAlignment(Vector2, ImeAlignment)

    Set the style of IME.

    Declaration
    public bool SetImePositionAndAlignment(Vector2 position, WebView.ImeAlignment alignment)
    Parameters
    Type Name Description
    Vector2 position

    The position of IME

    WebView.ImeAlignment alignment

    The alignment of IME

    Returns
    Type Description
    bool

    True if setting successfully, false otherwise

    View Source

    SetScaleFactor(float, Vector2)

    Scales the current page, centered at the given point.

    Declaration
    public void SetScaleFactor(float scaleFactor, Vector2 point)
    Parameters
    Type Name Description
    float scaleFactor

    The new factor to be scaled

    Vector2 point

    The center coordinate

    View Source

    SetTtsFocus(bool)

    Sets the tts focus to the webview. Please note that it only works when the webview does not have keyinput focus. If the webview has a keyinput focus, it also has tts focus so calling SetTtsFocus(false) is ignored.

    Declaration
    public void SetTtsFocus(bool focused)
    Parameters
    Type Name Description
    bool focused

    Focused or not

    View Source

    SetVideoHole(bool, bool)

    Enable video hole for a specific window type.

    Declaration
    public void SetVideoHole(bool enable, bool isWaylandWindow)
    Parameters
    Type Name Description
    bool enable

    true if enabled, false othewise

    bool isWaylandWindow

    true if wayland window, false if EFL window.

    View Source

    StartInspectorServer(uint)

    Starts the inspector server.

    Declaration
    public uint StartInspectorServer(uint port)
    Parameters
    Type Name Description
    uint port

    The port number

    Returns
    Type Description
    uint
    View Source

    StopInspectorServer()

    Stops the inspector server.

    Declaration
    public bool StopInspectorServer()
    Returns
    Type Description
    bool
    View Source

    StopLoading()

    Stops loading the Web

    Declaration
    public void StopLoading()
    View Source

    Suspend()

    Suspends the operation.

    Declaration
    public void Suspend()
    View Source

    SuspendNetworkLoading()

    Suspends all network loading.

    Declaration
    public void SuspendNetworkLoading()
    View Source

    WebAuthenticationCancel()

    cancel in progress web authentication that is passkey operation.

    Declaration
    public void WebAuthenticationCancel()

    Events

    View Source

    CertificateConfirmed

    Event for the CertificateConfirmed signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when certificate would be confirmed.

    Declaration
    public event EventHandler<WebViewCertificateReceivedEventArgs> CertificateConfirmed
    Event Type
    Type Description
    EventHandler<><WebViewCertificateReceivedEventArgs>
    View Source

    ConsoleMessageReceived

    Event for the ConsoleMessageReceived signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when console message is received.

    Declaration
    public event EventHandler<WebViewConsoleMessageReceivedEventArgs> ConsoleMessageReceived
    Event Type
    Type Description
    EventHandler<><WebViewConsoleMessageReceivedEventArgs>
    View Source

    ContextMenuHidden

    Event for the ContextMenuHidden signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when context menu item is hidden.

    Declaration
    public event EventHandler<WebViewContextMenuHiddenEventArgs> ContextMenuHidden
    Event Type
    Type Description
    EventHandler<><WebViewContextMenuHiddenEventArgs>
    View Source

    ContextMenuShown

    Event for the ContextMenuShown signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when context menu is shown.

    Declaration
    public event EventHandler<WebViewContextMenuShownEventArgs> ContextMenuShown
    Event Type
    Type Description
    EventHandler<><WebViewContextMenuShownEventArgs>
    View Source

    DeviceConnectionChanged

    This event is triggered when the connected devices change, such as when a new device is connected or an already connected device is disconnected

    Declaration
    public event EventHandler<WebViewDeviceConnectionChangedEventArgs> DeviceConnectionChanged
    Event Type
    Type Description
    EventHandler<><WebViewDeviceConnectionChangedEventArgs>
    Remarks

    In the handler of this event, you can set the callback method in the SetDeviceListGetCallback method to receive the list of currently connected devices

    View Source

    FileChooserRequested

    Event to FileChooserRequest.

    Declaration
    public event EventHandler<WebViewFileChooserRequestedEventArgs> FileChooserRequested
    Event Type
    Type Description
    EventHandler<><WebViewFileChooserRequestedEventArgs>
    View Source

    FormRepostPolicyDecided

    Event for the FormRepostDecided signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when form repost policy would be decided.

    Declaration
    public event EventHandler<WebViewFormRepostPolicyDecidedEventArgs> FormRepostPolicyDecided
    Event Type
    Type Description
    EventHandler<><WebViewFormRepostPolicyDecidedEventArgs>
    View Source

    FrameRendered

    Event for the FrameRendered signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when frame is rendered off-screen.

    Declaration
    public event EventHandler<EventArgs> FrameRendered
    Event Type
    Type Description
    EventHandler<><EventArgs>
    View Source

    FullscreenEntered

    Event for the FullscreenEntered signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when fullscreen is entered.

    Declaration
    public event EventHandler<EventArgs> FullscreenEntered
    Event Type
    Type Description
    EventHandler<><EventArgs>
    View Source

    FullscreenExited

    Event for the FullscreenExited signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when fullscreen is exited.

    Declaration
    public event EventHandler<EventArgs> FullscreenExited
    Event Type
    Type Description
    EventHandler<><EventArgs>
    View Source

    HttpAuthRequested

    Event for the HttpAuthRequested signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when http authentication is requested.

    Declaration
    public event EventHandler<WebViewHttpAuthRequestedEventArgs> HttpAuthRequested
    Event Type
    Type Description
    EventHandler<><WebViewHttpAuthRequestedEventArgs>
    View Source

    NavigationPolicyDecided

    Event for the NavigationPolicyDecided signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when response policy would be decided.

    Declaration
    public event EventHandler<WebViewPolicyDecidedEventArgs> NavigationPolicyDecided
    Event Type
    Type Description
    EventHandler<><WebViewPolicyDecidedEventArgs>
    View Source

    NewWindowCreated

    Event for the NewWindowCreated signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when a new window would be created.

    Declaration
    public event EventHandlerWithReturnType<object, EventArgs, WebView> NewWindowCreated
    Event Type
    Type Description
    EventHandlerWithReturnType<object, EventArgs, WebView>
    View Source

    NewWindowPolicyDecided

    Event for the NewWindowPolicyDecided signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when new window policy would be decided.

    Declaration
    public event EventHandler<WebViewPolicyDecidedEventArgs> NewWindowPolicyDecided
    Event Type
    Type Description
    EventHandler<><WebViewPolicyDecidedEventArgs>
    View Source

    OverScrolled

    Event for the OverScrolled signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when web view is over scrolled.

    Declaration
    public event EventHandler<WebViewOverScrolledEventArgs> OverScrolled
    Event Type
    Type Description
    EventHandler<><WebViewOverScrolledEventArgs>
    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
    EventHandler<><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
    EventHandler<><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
    EventHandler<><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
    EventHandler<><WebViewPageLoadEventArgs>
    View Source

    ResponsePolicyDecided

    Event for the ResponsePolicyDecided signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when response policy would be decided.

    Declaration
    public event EventHandler<WebViewPolicyDecidedEventArgs> ResponsePolicyDecided
    Event Type
    Type Description
    EventHandler<><WebViewPolicyDecidedEventArgs>
    View Source

    ScrollEdgeReached

    Event for the ScrollEdgeReached signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when web view is scrolled to edge.

    Declaration
    public event EventHandler<WebViewScrollEdgeReachedEventArgs> ScrollEdgeReached
    Event Type
    Type Description
    EventHandler<><WebViewScrollEdgeReachedEventArgs>
    View Source

    SslCertificateChanged

    Event for the SslCertificateChanged signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when SSL certificate is changed.

    Declaration
    public event EventHandler<WebViewCertificateReceivedEventArgs> SslCertificateChanged
    Event Type
    Type Description
    EventHandler<><WebViewCertificateReceivedEventArgs>
    View Source

    TextFound

    Event for the TextFound signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when text is found.

    Declaration
    public event EventHandler<WebViewTextFoundEventArgs> TextFound
    Event Type
    Type Description
    EventHandler<><WebViewTextFoundEventArgs>
    View Source

    UrlChanged

    Event for the UrlChanged signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when url is changed.

    Declaration
    public event EventHandler<WebViewUrlChangedEventArgs> UrlChanged
    Event Type
    Type Description
    EventHandler<><WebViewUrlChangedEventArgs>
    View Source

    UserMediaPermissionRequest

    Event to UserMediaPermissionRequest.

    Declaration
    public event EventHandler<WebViewUserMediaPermissionRequestEventArgs> UserMediaPermissionRequest
    Event Type
    Type Description
    EventHandler<><WebViewUserMediaPermissionRequestEventArgs>
    View Source

    WebAuthDisplayQR

    Event to informs user application to display QR code popup for passkey scenario.

    Declaration
    public event EventHandler<WebViewWebAuthDisplayQREventArgs> WebAuthDisplayQR
    Event Type
    Type Description
    EventHandler<><WebViewWebAuthDisplayQREventArgs>
    View Source

    WebAuthResponse

    Event to informs user application that the passkey registration and authentication has been successful.

    Declaration
    public event EventHandler WebAuthResponse
    Event Type
    Type Description
    EventHandler

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    BindingExtensions.BindingSession<TViewModel>(View)
    BindingExtensions.SetBinding<T>(View, BindingSession<T>, Action<T>, string)
    BindingExtensions.SetBinding<TViewModel>(View, BindingSession<TViewModel>, string, string)
    BindingExtensions.SetTwoWayBinding<TViewModel, TProperty>(View, BindingSession<TViewModel>, TwoWayBindingProperty<View, TProperty>, string)
    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    BindingExtensions.BindingSession<T, TViewModel>(T, BindingSession<TViewModel>)
    BindingExtensions.SetBinding<T, TView>(TView, BindingSession<T>, Action<T, TView>, string)
    BindingExtensions.SetBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, BindingProperty<TView, TProperty>, string)
    BindingExtensions.SetTwoWayBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, TwoWayBindingProperty<TView, TProperty>, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX