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
- Implements
-
System.IDisposable
Constructors
View SourceWebView()
Default constructor to create a WebView.
Declaration
public WebView()
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 |
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. |
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. |
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 SourceCacheModelProperty
CacheModelProperty
Declaration
public static readonly BindableProperty CacheModelProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
CookieAcceptPolicyProperty
CookieAcceptPolicyProperty
Declaration
public static readonly BindableProperty CookieAcceptPolicyProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
DefaultFontSizeProperty
DefaultFontSizeProperty
Declaration
public static readonly BindableProperty DefaultFontSizeProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
DefaultTextEncodingNameProperty
DefaultTextEncodingNameProperty
Declaration
public static readonly BindableProperty DefaultTextEncodingNameProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
EnableJavaScriptProperty
EnableJavaScriptProperty
Declaration
public static readonly BindableProperty EnableJavaScriptProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
LoadImagesAutomaticallyProperty
LoadImagesAutomaticallyProperty
Declaration
public static readonly BindableProperty LoadImagesAutomaticallyProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
Properties
View SourceBackForwardList
BackForwardList.
Declaration
public WebBackForwardList BackForwardList { get; }
Property Value
| Type | Description |
|---|---|
| WebBackForwardList |
CacheModel
Deprecated. The cache model of the current WebView.
Declaration
public CacheModel CacheModel { get; set; }
Property Value
| Type | Description |
|---|---|
| CacheModel |
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 |
ContentSize
The size of content, read-only.
Declaration
public Size ContentSize { get; }
Property Value
| Type | Description |
|---|---|
| Size |
Context
Context.
Declaration
public WebContext Context { get; }
Property Value
| Type | Description |
|---|---|
| WebContext |
CookieAcceptPolicy
Deprecated. The cookie acceptance policy.
Declaration
public CookieAcceptPolicy CookieAcceptPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| CookieAcceptPolicy |
CookieManager
CookieManager.
Declaration
public WebCookieManager CookieManager { get; }
Property Value
| Type | Description |
|---|---|
| WebCookieManager |
CursorEnabledByClient
Whether cursor is enabled or not by client.
Declaration
public bool CursorEnabledByClient { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DefaultFontSize
The default font size in pixel.
Declaration
public int DefaultFontSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
DefaultTextEncodingName
The default text encoding name.
e.g. "UTF-8"
Declaration
public string DefaultTextEncodingName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EnableJavaScript
Deprecated. Whether JavaScript is enabled.
Declaration
public bool EnableJavaScript { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Favicon
Gets favicon of web page.
Declaration
public ImageView Favicon { get; }
Property Value
| Type | Description |
|---|---|
| ImageView |
KeyEventsEnabled
Whether key events are enabled or not.
Declaration
public bool KeyEventsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LoadImagesAutomatically
Deprecated. Whether images can be loaded automatically.
Declaration
public bool LoadImagesAutomatically { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LoadProgressPercentage
Gets percentage of loading progress.
Declaration
public float LoadProgressPercentage { get; }
Property Value
| Type | Description |
|---|---|
| float |
MouseEventsEnabled
Whether mouse events are enabled or not.
Declaration
public bool MouseEventsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
PageZoomFactor
Zoom factor of web page.
Declaration
public float PageZoomFactor { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
ScrollPosition
The position of scroll.
Declaration
public Position ScrollPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| Position |
ScrollSize
The size of scroll, read-only.
Declaration
public Size ScrollSize { get; }
Property Value
| Type | Description |
|---|---|
| Size |
SelectedText
Gets selected text in web page.
Declaration
public string SelectedText { get; }
Property Value
| Type | Description |
|---|---|
| string |
Settings
BackForwardList.
Declaration
public WebSettings Settings { get; }
Property Value
| Type | Description |
|---|---|
| WebSettings |
TextZoomFactor
Zoom factor of text in web page.
Declaration
public float TextZoomFactor { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
TileCoverAreaMultiplier
Multiplier of cover area of tile when web page is rendered.
Declaration
public float TileCoverAreaMultiplier { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
TilesClearedWhenHidden
Whether tiles are cleared or not when hidden.
Declaration
public bool TilesClearedWhenHidden { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Title
Gets title of web page.
Declaration
public string Title { get; }
Property Value
| Type | Description |
|---|---|
| string |
Url
The URL to load.
Declaration
public string Url { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserAgent
The user agent string.
Declaration
public string UserAgent { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
VideoHoleEnabled
Whether video hole is enabled or not.
Declaration
public bool VideoHoleEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceActivateAccessibility(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 |
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 |
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 |
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 |
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 |
CanGoBack()
Returns whether backward is possible.
Declaration
public bool CanGoBack()
Returns
| Type | Description |
|---|---|
| bool | True if backward is possible, false otherwise |
CanGoForward()
Returns whether forward is possible.
Declaration
public bool CanGoForward()
Returns
| Type | Description |
|---|---|
| bool | True if forward is possible, false otherwise |
ChangeOrientation(WindowOrientation)
Change orientation.
Declaration
public void ChangeOrientation(Window.WindowOrientation orientation)
Parameters
| Type | Name | Description |
|---|---|---|
| Window.WindowOrientation | orientation |
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 |
ClearAllTilesResources()
Clears title resources of current WebView.
Declaration
public void ClearAllTilesResources()
ClearCache()
Deprecated. Clears the cache of current WebView.
Declaration
public void ClearCache()
ClearCookies()
Deprecated. Clears all the cookies of current WebView.
Declaration
public void ClearCookies()
ClearHistory()
Clears the history of current WebView.
Declaration
public void ClearHistory()
Dispose(DisposeTypes)
Dispose for IDisposable pattern
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type |
Overrides
View SourceEvaluateJavaScript(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:
- webview.EvaluateJavaScript("abc", handler1),
- webview.EvaluateJavaScript("def", handler2),
- handle2 would be called,
- 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 |
EvaluateJavaScript(string)
Evaluates JavaScript code represented as a string.
Declaration
public void EvaluateJavaScript(string script)
Parameters
| Type | Name | Description |
|---|---|---|
| string | script | The JavaScript code |
ExitFullscreen()
Exit fullscreen.
Declaration
public void ExitFullscreen()
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 |
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 |
GetScaleFactor()
Gets the current scale factor of the page.
Declaration
public float GetScaleFactor()
Returns
| Type | Description |
|---|---|
| float |
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 |
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 |
GoBack()
Goes to the back
Declaration
public void GoBack()
GoForward()
Goes to the forward
Declaration
public void GoForward()
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 |
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 |
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 |
JavaScriptAlertReply()
Reply for alert popup.
Declaration
public void JavaScriptAlertReply()
JavaScriptConfirmReply(bool)
Reply for confirm popup.
Declaration
public void JavaScriptConfirmReply(bool confirmed)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | confirmed | Confirmed or not |
JavaScriptPromptReply(string)
Reply for prompt popup.
Declaration
public void JavaScriptPromptReply(string result)
Parameters
| Type | Name | Description |
|---|---|---|
| string | result | Text in prompt input field. |
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 |
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 |
LoadHtmlString(string)
Loads a html by string.
Declaration
public void LoadHtmlString(string data)
Parameters
| Type | Name | Description |
|---|---|---|
| string | data | The data of Web |
LoadHTMLString(string)
Deprecated. Loads a html by string.
Declaration
public void LoadHTMLString(string data)
Parameters
| Type | Name | Description |
|---|---|---|
| string | data | The data of Web |
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 |
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.
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 |
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 |
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 |
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 |
ReleaseSwigCPtr(HandleRef)
Declaration
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
View SourceReload()
Reloads the Web
Declaration
public void Reload()
ReloadWithoutCache()
Reloads the current page's document without cache
Declaration
public bool ReloadWithoutCache()
Returns
| Type | Description |
|---|---|
| bool |
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 |
Resume()
Resumes the operation after calling Suspend()
Declaration
public void Resume()
ResumeNetworkLoading()
Resumes all network loading.
Declaration
public void ResumeNetworkLoading()
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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. |
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 |
StopInspectorServer()
Stops the inspector server.
Declaration
public bool StopInspectorServer()
Returns
| Type | Description |
|---|---|
| bool |
StopLoading()
Stops loading the Web
Declaration
public void StopLoading()
Suspend()
Suspends the operation.
Declaration
public void Suspend()
SuspendNetworkLoading()
Suspends all network loading.
Declaration
public void SuspendNetworkLoading()
WebAuthenticationCancel()
cancel in progress web authentication that is passkey operation.
Declaration
public void WebAuthenticationCancel()
Events
View SourceCertificateConfirmed
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> |
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> |
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> |
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> |
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
FileChooserRequested
Event to FileChooserRequest.
Declaration
public event EventHandler<WebViewFileChooserRequestedEventArgs> FileChooserRequested
Event Type
| Type | Description |
|---|---|
| EventHandler<><WebViewFileChooserRequestedEventArgs> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
UserMediaPermissionRequest
Event to UserMediaPermissionRequest.
Declaration
public event EventHandler<WebViewUserMediaPermissionRequestEventArgs> UserMediaPermissionRequest
Event Type
| Type | Description |
|---|---|
| EventHandler<><WebViewUserMediaPermissionRequestEventArgs> |
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> |
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 |