Interface IBlazorWebView
Interface to be implemented by all platform specific BlazorWebView versions.
Namespace: BlazorWebView
Assembly: BlazorWebView.dll
Syntax
public interface IBlazorWebView
Methods
| Improve this Doc View SourceInitialize(Action<WebViewOptions>)
Initialize the BlazorWebView.
Declaration
void Initialize(Action<WebViewOptions> configure)
Parameters
Type | Name | Description |
---|---|---|
System.Action<WebViewOptions> | configure | A delegate that is executed to configure the webview. |
Invoke(Action)
Invoke a callback on the UI thread.
Declaration
void Invoke(Action callback)
Parameters
Type | Name | Description |
---|---|---|
System.Action | callback | The callback to execute. |
NavigateToUrl(String)
Navigate to the specified URL.
Declaration
void NavigateToUrl(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL to navigate to. |
SendMessage(String)
Send a message to javascript.
Declaration
void SendMessage(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message to send. |
ShowMessage(String, String)
Show a native dialog for the platform with the specified message.
Declaration
void ShowMessage(string title, string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | title | The title to show. |
System.String | message | The message to show. |
Events
| Improve this Doc View SourceOnWebMessageReceived
Event that is fired when a web message is received from javascript.
Declaration
event EventHandler<string> OnWebMessageReceived
Event Type
Type | Description |
---|---|
System.EventHandler<System.String> |