Share via


IHybridWebView.SetInvokeJavaScriptTarget<T>(T) Method

Definition

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 void SetInvokeJavaScriptTarget(T target);
public void SetInvokeJavaScriptTarget<T> (T target) where T : class;
abstract member 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.

Applies to