IHybridWebView.SetInvokeJavaScriptTarget<T>(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.