Show / Hide Table of Contents

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 Source

Initialize(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

NavigateToUrl(String)

Navigate to the specified URL.

Declaration
void NavigateToUrl(string url)
Parameters
Type Name Description
System.String url

The URL to navigate to.

| Improve this Doc View Source

SendMessage(String)

Send a message to javascript.

Declaration
void SendMessage(string message)
Parameters
Type Name Description
System.String message

The message to send.

| Improve this Doc View Source

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 Source

OnWebMessageReceived

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>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX