WebKit.WKWebView.EvaluateJavaScriptAsync Method
Evaluates the given JavaScript string.

Syntax

public virtual System.Threading.Tasks.Task<Foundation.NSObject> EvaluateJavaScriptAsync (Foundation.NSString javascript)

Parameters

javascript
The JavaScript string to evaluate

Returns

A task that represents the asynchronous EvaluateJavaScript operation. The value of the TResult parameter is a WebKit.WKJavascriptEvaluationResult.

Remarks

The EvaluateJavaScriptAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

The completionHandler is passed the result of the script evaluation or an error.

Requirements

Namespace: WebKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0