if (native.isFailure(result)) {
throw native.getErrorObject(result);
}
+
+ _bleScanListener.removeListener();
};
+BluetoothLEAdapter.prototype.isScanning = function() {
+ privUtils_.log('Entered BluetoothLEAdapter.isScanning()');
+
+ var result = native.callSync('BluetoothLEAdapterIsScanning', {});
+ if (native.isFailure(result)) {
+ throw native.getErrorObject(result);
+ }
+ return native.getResultObject(result);
+};
+
var _BluetoothAdvertisePacketType = {
ADVERTISE: 'ADVERTISE',
SCAN_RESPONSE: 'SCAN_RESPONSE'