Privilege.BLUETOOTH_GAP
);
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'service',
type: AV.Types.UNSIGNED_LONG
BluetoothSocket.prototype.writeData = function() {
privUtils_.log('Entered BluetoothSocket.writeData()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'data',
type: AV.Types.ARRAY,
BluetoothLEDevice.prototype.connect = function() {
privUtils_.log('Entered BluetoothLEDevice.connect()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'successCallback',
type: AV.Types.FUNCTION,
BluetoothLEDevice.prototype.disconnect = function() {
privUtils_.log('Entered BluetoothLEDevice.disconnect()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'successCallback',
type: AV.Types.FUNCTION,
BluetoothLEDevice.prototype.getService = function() {
privUtils_.log('Entered BluetoothLEDevice.getService()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'uuid',
type: AV.Types.STRING
BluetoothLEDevice.prototype.addConnectStateChangeListener = function() {
privUtils_.log('Entered BluetoothLEDevice.addConnectStateChangeListener()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'listener',
type: AV.Types.LISTENER,
BluetoothLEDevice.prototype.removeConnectStateChangeListener = function() {
privUtils_.log('Entered BluetoothLEDevice.removeConnectStateChangeListener()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'watchID',
type: AV.Types.LONG
BluetoothDevice.prototype.connectToServiceByUUID = function() {
privUtils_.log('Entered BluetoothDevice.connectToServiceByUUID()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'uuid',
type: AV.Types.STRING
BluetoothServiceHandler.prototype.unregister = function() {
privUtils_.log('Entered BluetoothServiceHandler.unregister()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'successCallback',
type: AV.Types.FUNCTION,
BluetoothHealthApplication.prototype.unregister = function() {
privUtils_.log('Entered BluetoothHealthApplication.unregister()');
privUtils_.printDeprecationWarningFor('BluetoothHealthApplication');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'successCallback',
type: AV.Types.FUNCTION,
privUtils_.log('Entered BluetoothHealthProfileHandler.registerSinkApplication()');
privUtils_.printDeprecationWarningFor('BluetoothHealthProfileHandler');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'dataType',
type: AV.Types.LONG // there's no short type
privUtils_.log('Entered BluetoothHealthProfileHandler.connectToSource()');
privUtils_.printDeprecationWarningFor('BluetoothHealthProfileHandler');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'peer',
type: AV.Types.PLATFORM_OBJECT,
privUtils_.log('Entered BluetoothHealthChannel.sendData()');
privUtils_.printDeprecationWarningFor('BluetoothHealthChannel');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'data',
type: AV.Types.ARRAY,
Privilege.BLUETOOTH,
Privilege.BLUETOOTH_HEALTH
);
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'changeCallback',
type: AV.Types.LISTENER,
BluetoothLEAdapter.prototype.startScan = function() {
privUtils_.log('Entered BluetoothLEAdapter.startScan()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'successCallback',
type: AV.Types.FUNCTION
BluetoothLEAdapter.prototype.startAdvertise = function() {
privUtils_.log('Entered BluetoothLEAdapter.startAdvertise()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'advertiseData',
type: AV.Types.PLATFORM_OBJECT,
this.readValue = function() {
privUtils_.log('Entered BluetoothGATTCharacteristic.readValue()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'successCallback',
type: AV.Types.FUNCTION
this.writeValue = function() {
privUtils_.log('Entered BluetoothGATTCharacteristic.writeValue()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'value',
type: AV.Types.ARRAY,
Privilege.BLUETOOTH,
Privilege.BLUETOOTH_ADMIN
);
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'callback',
type: AV.Types.FUNCTION
this.removeValueChangeListener = function() {
privUtils_.log('Entered BluetoothGATTCharacteristic.removeValueChangeListener()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'watchID',
type: AV.Types.LONG
this.readValue = function() {
privUtils_.log('Entered BluetoothGATTDescriptor.readValue()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'successCallback',
type: AV.Types.FUNCTION
this.writeValue = function() {
privUtils_.log('Entered BluetoothGATTDescriptor.writeValue()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'value',
type: AV.Types.ARRAY,
BluetoothAdapter.prototype.setName = function() {
privUtils_.log('Entered BluetoothAdapter.setName()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'name',
type: AV.Types.STRING
'Let the user turn on/off Bluetooth through the Settings application instead.'
);
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'powered',
type: AV.Types.BOOLEAN
'application instead.'
);
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'visible',
type: AV.Types.BOOLEAN
BluetoothAdapter.prototype.setChangeListener = function() {
privUtils_.log('Entered BluetoothAdapter.setChangeListener()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'changeCallback',
type: AV.Types.LISTENER,
BluetoothAdapter.prototype.discoverDevices = function() {
privUtils_.log('Entered BluetoothAdapter.discoverDevices()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'successCallback',
type: AV.Types.LISTENER,
BluetoothAdapter.prototype.stopDiscovery = function() {
privUtils_.log('Entered BluetoothAdapter.stopDiscovery()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'successCallback',
type: AV.Types.FUNCTION,
BluetoothAdapter.prototype.getKnownDevices = function() {
privUtils_.log('Entered BluetoothAdapter.getKnownDevices()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'successCallback',
type: AV.Types.FUNCTION
BluetoothAdapter.prototype.getDevice = function() {
privUtils_.log('Entered BluetoothAdapter.getDevice()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'address',
type: AV.Types.STRING
BluetoothAdapter.prototype.createBonding = function() {
privUtils_.log('Entered BluetoothAdapter.createBonding()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'address',
type: AV.Types.STRING
BluetoothAdapter.prototype.destroyBonding = function() {
privUtils_.log('Entered BluetoothAdapter.destroyBonding()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'address',
type: AV.Types.STRING
BluetoothAdapter.prototype.registerRFCOMMServiceByUUID = function() {
privUtils_.log('Entered BluetoothAdapter.registerRFCOMMServiceByUUID()');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'uuid',
type: AV.Types.STRING
BluetoothAdapter.prototype.getBluetoothProfileHandler = function() {
privUtils_.log('Entered BluetoothAdapter.getBluetoothProfileHandler()');
privUtils_.printDeprecationWarningFor('getBluetoothProfileHandler');
- var args = AV.validateMethod(arguments, [
+ var args = AV.validateArgs(arguments, [
{
name: 'profileType',
type: AV.Types.ENUM,