function (success, fail, args, env) {
		var result = new PluginResult(args, env);
		if (!initialiseBluetoothCallbackId) {
			initialiseBluetoothCallbackId = result.callbackId;
			resultObjs[result.callbackId] = result;
			result.ok(simpleXpBeaconPlugin.getInstance().initialiseBluetooth(result.callbackId), true);
		} else {
			result.error("Initialise Bluetooth failure", false);
		}
	}
function (success, fail, args, env) {
		var result = new PluginResult(args, env);
		if (!initialiseBluetoothCallbackId) {
			initialiseBluetoothCallbackId = result.callbackId;
			resultObjs[result.callbackId] = result;
			result.ok(simpleXpBeaconPlugin.getInstance().initialiseBluetooth(result.callbackId), true);
		} else {
			result.error("Initialise Bluetooth failure", false);
		}
	}
function ( success , fail , args , env ) { var result = new PluginResult ( args , env ) ; if ( ! initialiseBluetoothCallbackId ) { initialiseBluetoothCallbackId = result . callbackId ; resultObjs [ result . callbackId ] = result ; result . ok ( simpleXpBeaconPlugin . getInstance ( ) . initialiseBluetooth ( result . callbackId ) , true ) ; } else { result . error ( "Initialise Bluetooth failure" , false ) ; } }
These methods call into JNEXT.SimpleXpBeaconPlugin which handles the communication through the JNEXT plugin to simpleXpbeaconplugin_js.cpp
These methods call into JNEXT . SimpleXpBeaconPlugin which handles the communication through the JNEXT plugin to simpleXpbeaconplugin_js . cpp