Example usage for org.apache.cordova PluginResult StatusMessages

List of usage examples for org.apache.cordova PluginResult StatusMessages

Introduction

In this page you can find the example usage for org.apache.cordova PluginResult StatusMessages.

Prototype

String[] StatusMessages

To view the source code for org.apache.cordova PluginResult StatusMessages.

Click Source Link

Usage

From source file:com.commontime.plugin.LocationManager.java

License:Apache License

private void _sendResultOfCommand(CallbackContext callbackContext, PluginResult pluginResult) {

    //debugLog("Send result: " + pluginResult.getMessage());
    if (pluginResult.getStatus() != PluginResult.Status.OK.ordinal())
        debugWarn("WARNING: " + PluginResult.StatusMessages[pluginResult.getStatus()]);

    // When calling without a callback from the client side the command can be null.
    if (callbackContext == null) {
        return;/*from   www .  j a v a  2  s . c  o m*/
    }

    callbackContext.sendPluginResult(pluginResult);
}