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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.