[ 
https://issues.apache.org/jira/browse/CB-6997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14039533#comment-14039533
 ] 

Shazron Abdullah commented on CB-6997:
--------------------------------------

writeJavaScript can't return a value anyway with WKWebView since the Obj-C->js 
call is async (the return value is returned in a block).

> Deprecate obsolete CDVPlugin methods
> ------------------------------------
>
>                 Key: CB-6997
>                 URL: https://issues.apache.org/jira/browse/CB-6997
>             Project: Apache Cordova
>          Issue Type: Task
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 3.6.0
>
>
> // Deprecate these in favour of using CDVCommandDelegate directly.
> // - (NSString*)writeJavascript:(NSString*)javascript;
> // - (NSString*)success:(CDVPluginResult*)pluginResult 
> callbackId:(NSString*)callbackId;
> // - (NSString*)error:(CDVPluginResult*)pluginResult 
> callbackId:(NSString*)callbackId;
> These are remnants of how older plugins used pluginResult and are not doc'ed 
> anymore. Time to migrate people.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to