native.callIfPossible(args.successCallback);
}
};
-
+ // Errors are handled by error callback
native.call('BluetoothLEDevice_connect', {address : this.address}, callback);
};
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothServiceHandler_unregister', callArgs, callback);
_bluetoothServiceListeners.removeListener(this.uuid);
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothHealthApplication_unregister', callArgs, callback);
_bluetoothHealthApplicationListeners.removeListener(this._id);
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothHealthProfileHandler_registerSinkApp', callArgs, callback);
};
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothHealthProfileHandler_connectToSource', callArgs, callback);
};
xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
- // TODO: when should we call _bleAdvertiseListener.removeListener()?
-
+ _bleAdvertiseListener.removeListener();
var result = native.callSync('BluetoothLEAdapter_stopAdvertise', {});
if (native.isFailure(result)) {
- _bleAdvertiseListener.removeListener();
throw native.getErrorObject(result);
}
};
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothAdapter_setName', callArgs, callback);
};
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothAdapter_setPowered', callArgs, callback);
};
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothAdapter_setVisible', callArgs, callback);
};
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothAdapter_stopDiscovery', {}, callback);
};
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothAdapter_getKnownDevices', {}, callback);
};
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothAdapter_getDevice', {address : args.address}, callback);
};
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothAdapter_createBonding', callArgs, callback);
};
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothAdapter_destroyBonding', callArgs, callback);
};
};
// native.call does not inform if call results in failure
- // TODO: what to do in this case?
+ // Errors are handled by error callback
native.call('BluetoothAdapter_registerRFCOMMServiceByUUID', callArgs, callback);
};