Bug 29821 - WKWebView.EvaluateJavaScriptAsync - documentation incorrect/missing
Summary: WKWebView.EvaluateJavaScriptAsync - documentation incorrect/missing
Alias: None
Product: Documentation
Classification: Xamarin
Component: MonoTouch ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Larry O'Brien
Depends on:
Reported: 2015-05-06 20:39 UTC by David Schwegler
Modified: 2016-04-08 21:49 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description David Schwegler 2015-05-06 20:39:02 UTC

The documentation does not correctly indicate what the NSObject will be in the returned Task<NSObject>. Is it an NSError otherwise an NSString?

The documentation talks about a WKJavascriptEvaluationResult (which is impossible -- that's a handler) in the Returns section, and a completion handler (which doesn't exist) in the Remarks section.

Can this be clarified please? I'm quite confused about it :)
Comment 1 Larry O'Brien 2016-04-08 21:49:14 UTC
The method will throw an `NSErrorException` if the JavaScript is not evaluated successfully.

API docs for this and related methods updated with sample code in ios-api-docs 7e52af3bc0ee69c47849a78ec4bbfe2676b3b39c