Notice: A success or failure result, i.e., [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR ...] or [CDVPluginResult resultWithStatus:CDVCommandStatus_OK], is never returned.
However, the documentation allows for a callback function as shown here.
JavaScript implementation of
ContentSync.loadUrl
follows.Notice: A callback is passed to
exec
for success and failure.Objective-C implementation of
- (void)loadUrl:(CDVInvokedUrlCommand*) command
follows.Notice: A success or failure result, i.e.,
[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR ...]
or[CDVPluginResult resultWithStatus:CDVCommandStatus_OK]
, is never returned.However, the documentation allows for a callback function as shown here.