src/android/IndoorAtlas.java
public boolean execute(String action, JSONArray args, final CallbackContext callbackContext) throws JSONException {
      activity = cordova.getActivity();
      callback = callbackContext;

      if (action.equals("init")){
        initIndoorAtlas();
      }else if (action.equals("getCurrentLocation")){
        requestUpdateLocation();
        callback.success("request location update");
      }


      return true;
    }
/**
     * Executes the request and returns PluginResult.
     *
     * @param action            The action to execute.
     * @param args              JSONArry of arguments for the plugin.
     * @param callbackContext   The callback id used when calling back into JavaScript.
     * @return                  True if the action was valid, false if not.
     */
Executes the request and returns PluginResult.
@param action            The action to execute.
@param args              JSONArry of arguments for the plugin.
@param callbackContext   The callback id used when calling back into JavaScript.
@return                  True if the action was valid, false if not.
Executes the request and returns PluginResult . @param action The action to execute . @param args JSONArry of arguments for the plugin . @param callbackContext The callback id used when calling back into JavaScript . @return True if the action was valid false if not .
public boolean execute(String action, JSONArray args, final CallbackContext callbackContext) throws JSONException {
      activity = cordova.getActivity();
      callback = callbackContext;
      if (action.equals("init")){
        initIndoorAtlas();
      }else if (action.equals("getCurrentLocation")){
        requestUpdateLocation();
        callback.success("request location update");
      }
      return true;
    }
public boolean execute ( String action , JSONArray args , final CallbackContext callbackContext ) throws JSONException { activity = cordova . getActivity ( ) ; callback = callbackContext ; if ( action . equals ( "init" ) ) { initIndoorAtlas ( ) ; } else if ( action . equals ( "getCurrentLocation" ) ) { requestUpdateLocation ( ) ; callback . success ( "request location update" ) ; } return true ; }
Executes the request and returns PluginResult.
Executes the request and returns PluginResult .