Method InvokeScriptAsync
InvokeScriptAsync(string, nint, params object?[])
Executes the given JavaScript function asynchronously and returns the result via a ScriptResult event.
public virtual void InvokeScriptAsync(string scriptName, nint clientData, params object?[] args)
Parameters
scriptNamestringThe name of the script function to execute.
clientDatanintArbitrary pointer to data that can be retrieved from the result event. You can use IntPtr.Zero, new IntPtr(SomeInt) or some useful data in this parameter.
argsobject[]The parameters to pass to the script function.