HybridWebView.SetInvokeJavaScriptTarget Method

Definition

Overloads

Name Description
SetInvokeJavaScriptTarget<T>(T, JsonSerializerContext)

Sets the object that will be the target of JavaScript calls from the web view. The public methods on this object are callable from JavaScript using the window.HybridWebView.InvokeDotNet method.

SetInvokeJavaScriptTarget<T>(T)

Sets the object that will be the target of JavaScript calls from the web view. The public methods on this object are callable from JavaScript using the window.HybridWebView.InvokeDotNet method.

SetInvokeJavaScriptTarget<T>(T, JsonSerializerContext)

Sets the object that will be the target of JavaScript calls from the web view. The public methods on this object are callable from JavaScript using the window.HybridWebView.InvokeDotNet method.

public:
generic <typename T>
 where T : class virtual void SetInvokeJavaScriptTarget(T target, System::Text::Json::Serialization::JsonSerializerContext ^ jsonSerializerContext);
public void SetInvokeJavaScriptTarget<T>(T target, System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) where T : class;
abstract member SetInvokeJavaScriptTarget : 'T * System.Text.Json.Serialization.JsonSerializerContext -> unit (requires 'T : null)
override this.SetInvokeJavaScriptTarget : 'T * System.Text.Json.Serialization.JsonSerializerContext -> unit (requires 'T : null)
Public Sub SetInvokeJavaScriptTarget(Of T As Class) (target As T, jsonSerializerContext As JsonSerializerContext)

Type Parameters

T

The type that contains methods callable from JavaScript.

Parameters

target
T

An instance of type T that will be used to call methods on.

jsonSerializerContext
JsonSerializerContext

The source-generated JSON serializer context for parameter and return types used by the target methods.

Implements

Applies to

SetInvokeJavaScriptTarget<T>(T)

Source:
HybridWebView.cs
Source:
HybridWebView.cs
Source:
HybridWebView.cs

Sets the object that will be the target of JavaScript calls from the web view. The public methods on this object are callable from JavaScript using the window.HybridWebView.InvokeDotNet method.

public:
generic <typename T>
 where T : class virtual void SetInvokeJavaScriptTarget(T target);
public void SetInvokeJavaScriptTarget<T>(T target) where T : class;
abstract member SetInvokeJavaScriptTarget : 'T -> unit (requires 'T : null)
override this.SetInvokeJavaScriptTarget : 'T -> unit (requires 'T : null)
Public Sub SetInvokeJavaScriptTarget(Of T As Class) (target As T)

Type Parameters

T

The type that contains methods callable from JavaScript.

Parameters

target
T

An instance of type T that will be used to call methods on.

Implements

Applies to