Share via


HybridWebView.EvaluateJavaScriptAsync(String) Method

Definition

Runs the JavaScript code provided in the script parameter and returns the result as a string.

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ EvaluateJavaScriptAsync(System::String ^ script);
public System.Threading.Tasks.Task<string?> EvaluateJavaScriptAsync (string script);
abstract member EvaluateJavaScriptAsync : string -> System.Threading.Tasks.Task<string>
override this.EvaluateJavaScriptAsync : string -> System.Threading.Tasks.Task<string>
Public Function EvaluateJavaScriptAsync (script As String) As Task(Of String)

Parameters

script
String

The JavaScript code to run.

Returns

The return value (if any) of running the script.

Implements

Applies to