Show / Hide Table of Contents

Class JSInteropMethods

Methods that can be called from javascript.

Inheritance
System.Object
JSInteropMethods
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: BlazorWebView
Assembly: BlazorWebView.dll
Syntax
public static class JSInteropMethods

Methods

| Improve this Doc View Source

DispatchEvent(WebEventDescriptor, String)

Dispatches an event with the specified event descriptor and event arguments to the renderer.

Declaration
public static Task DispatchEvent(WebEventDescriptor eventDescriptor, string eventArgsJson)
Parameters
Type Name Description
WebEventDescriptor eventDescriptor

The event descriptor.

System.String eventArgsJson

The event arguments.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the asynchronous operation.

| Improve this Doc View Source

NotifyLocationChanged(String, Boolean)

Notify the navigation manager that the location has changed.

Declaration
public static void NotifyLocationChanged(string uri, bool isInterceptedLink)
Parameters
Type Name Description
System.String uri

The new uri.

System.Boolean isInterceptedLink

Whether it is an intercepted link.

| Improve this Doc View Source

OnRenderCompleted(Int64, String)

Notify the Renderer that a render has completed.

Declaration
public static Task OnRenderCompleted(long renderId, string errorMessageOrNull)
Parameters
Type Name Description
System.Int64 renderId

The id of the render pass.

System.String errorMessageOrNull

The error message or null indicating uscces.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the asynchronous operation.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX