@ionic-native/bluetooth-le
Advanced tools
Comparing version 5.3.0 to 5.4.0
@@ -323,5 +323,5 @@ import { IonicNativePlugin } from '@ionic-native/core'; | ||
* @param {InitParams} [params] | ||
* @returns {(Promise<{ status: 'enabled' | 'disabled'}>)} The callback that is passed initialize status (enabled/disabled) | ||
* @returns {(Observable<{ status: 'enabled' | 'disabled'}>)} The callback that is passed initialize status (enabled/disabled) | ||
*/ | ||
initialize(params?: InitParams): Promise<{ | ||
initialize(params?: InitParams): Observable<{ | ||
status: 'enabled' | 'disabled'; | ||
@@ -332,7 +332,5 @@ }>; | ||
* Enable Bluetooth on the device. Android support only | ||
* @returns {Promise<{ status: boolean }>} | ||
* @returns void | ||
*/ | ||
enable(): Promise<{ | ||
status: boolean; | ||
}>; | ||
enable(): void; | ||
/** | ||
@@ -362,7 +360,5 @@ * @name disable (Android) | ||
* @param {ScanParams} params Scan params | ||
* @returns {(Observable<{ status: ScanStatus }>)} | ||
* @returns {(Observable< ScanStatus >)} | ||
*/ | ||
startScan(params: ScanParams): Observable<{ | ||
status: ScanStatus; | ||
}>; | ||
startScan(params: ScanParams): Observable<ScanStatus>; | ||
/** | ||
@@ -435,5 +431,3 @@ * @name stopScan | ||
autoConnect?: boolean; | ||
}): Observable<{ | ||
status: DeviceInfo; | ||
}>; | ||
}): Observable<DeviceInfo>; | ||
/** | ||
@@ -455,9 +449,7 @@ * @name reconnect | ||
* @param {{address: string}} params The address/identifier | ||
* @returns {Promise<{ status: DeviceInfo }>} | ||
* @returns {Promise<DeviceInfo>} | ||
*/ | ||
disconnect(params: { | ||
address: string; | ||
}): Promise<{ | ||
status: DeviceInfo; | ||
}>; | ||
}): Promise<DeviceInfo>; | ||
/** | ||
@@ -469,9 +461,7 @@ * @name close | ||
* @param {{ address: string }} params The address/identifier | ||
* @returns {Promise<{ status: DeviceInfo }>} | ||
* @returns {Promise<DeviceInfo>} | ||
*/ | ||
close(params: { | ||
address: string; | ||
}): Promise<{ | ||
status: DeviceInfo; | ||
}>; | ||
}): Promise<DeviceInfo>; | ||
/** | ||
@@ -487,3 +477,3 @@ * @name discover | ||
* @param {{ address: string, clearCache: boolean }} params The address/identifier | ||
* @returns {Promise<{ device: Device }>} | ||
* @returns {Promise<Device>} | ||
* success: device object (contains array of service objects) | ||
@@ -495,5 +485,3 @@ * error: The callback that will be triggered when the unbond operation fails | ||
clearCache?: boolean; | ||
}): Promise<{ | ||
device: Device; | ||
}>; | ||
}): Promise<Device>; | ||
/** | ||
@@ -504,3 +492,3 @@ * @name services (iOS) | ||
* @param {{address: string, services: string[]}} params | ||
* @returns {Promise<{ services: Services }>} | ||
* @returns {Promise<Services>} | ||
*/ | ||
@@ -510,5 +498,3 @@ services(params: { | ||
services?: string[]; | ||
}): Promise<{ | ||
services: Services; | ||
}>; | ||
}): Promise<Services>; | ||
/** | ||
@@ -591,9 +577,7 @@ * @name characteristics (iOS) | ||
* @param {{ address: string }} params | ||
* @returns {Promise<{ rssi: RSSI }>} | ||
* @returns {Promise< RSSI >} | ||
*/ | ||
rssi(params: { | ||
address: string; | ||
}): Promise<{ | ||
rssi: RSSI; | ||
}>; | ||
}): Promise<RSSI>; | ||
/** | ||
@@ -603,3 +587,3 @@ * @name mtu (Android, Android 5+) | ||
* @param {{ address: string, mtu: number }} params | ||
* @returns {Promise<{ mtu: MTU }>} | ||
* @returns {Promise< MTU >} | ||
*/ | ||
@@ -609,5 +593,3 @@ mtu(params: { | ||
mtu?: number; | ||
}): Promise<{ | ||
mtu: MTU; | ||
}>; | ||
}): Promise<MTU>; | ||
/** | ||
@@ -839,3 +821,3 @@ * @name requestConnectionPriority (Android, Android 5+) | ||
SCAN_MODE_LOW_LATENCY: number; | ||
MATCH_MODE_AGRESSIVE: number; | ||
MATCH_MODE_AGGRESSIVE: number; | ||
MATCH_MODE_STICKY: number; | ||
@@ -842,0 +824,0 @@ MATCH_NUM_ONE_ADVERTISEMENT: number; |
@@ -323,5 +323,5 @@ import { IonicNativePlugin } from '@ionic-native/core'; | ||
* @param {InitParams} [params] | ||
* @returns {(Promise<{ status: 'enabled' | 'disabled'}>)} The callback that is passed initialize status (enabled/disabled) | ||
* @returns {(Observable<{ status: 'enabled' | 'disabled'}>)} The callback that is passed initialize status (enabled/disabled) | ||
*/ | ||
initialize(params?: InitParams): Promise<{ | ||
initialize(params?: InitParams): Observable<{ | ||
status: 'enabled' | 'disabled'; | ||
@@ -332,7 +332,5 @@ }>; | ||
* Enable Bluetooth on the device. Android support only | ||
* @returns {Promise<{ status: boolean }>} | ||
* @returns void | ||
*/ | ||
enable(): Promise<{ | ||
status: boolean; | ||
}>; | ||
enable(): void; | ||
/** | ||
@@ -362,7 +360,5 @@ * @name disable (Android) | ||
* @param {ScanParams} params Scan params | ||
* @returns {(Observable<{ status: ScanStatus }>)} | ||
* @returns {(Observable< ScanStatus >)} | ||
*/ | ||
startScan(params: ScanParams): Observable<{ | ||
status: ScanStatus; | ||
}>; | ||
startScan(params: ScanParams): Observable<ScanStatus>; | ||
/** | ||
@@ -435,5 +431,3 @@ * @name stopScan | ||
autoConnect?: boolean; | ||
}): Observable<{ | ||
status: DeviceInfo; | ||
}>; | ||
}): Observable<DeviceInfo>; | ||
/** | ||
@@ -455,9 +449,7 @@ * @name reconnect | ||
* @param {{address: string}} params The address/identifier | ||
* @returns {Promise<{ status: DeviceInfo }>} | ||
* @returns {Promise<DeviceInfo>} | ||
*/ | ||
disconnect(params: { | ||
address: string; | ||
}): Promise<{ | ||
status: DeviceInfo; | ||
}>; | ||
}): Promise<DeviceInfo>; | ||
/** | ||
@@ -469,9 +461,7 @@ * @name close | ||
* @param {{ address: string }} params The address/identifier | ||
* @returns {Promise<{ status: DeviceInfo }>} | ||
* @returns {Promise<DeviceInfo>} | ||
*/ | ||
close(params: { | ||
address: string; | ||
}): Promise<{ | ||
status: DeviceInfo; | ||
}>; | ||
}): Promise<DeviceInfo>; | ||
/** | ||
@@ -487,3 +477,3 @@ * @name discover | ||
* @param {{ address: string, clearCache: boolean }} params The address/identifier | ||
* @returns {Promise<{ device: Device }>} | ||
* @returns {Promise<Device>} | ||
* success: device object (contains array of service objects) | ||
@@ -495,5 +485,3 @@ * error: The callback that will be triggered when the unbond operation fails | ||
clearCache?: boolean; | ||
}): Promise<{ | ||
device: Device; | ||
}>; | ||
}): Promise<Device>; | ||
/** | ||
@@ -504,3 +492,3 @@ * @name services (iOS) | ||
* @param {{address: string, services: string[]}} params | ||
* @returns {Promise<{ services: Services }>} | ||
* @returns {Promise<Services>} | ||
*/ | ||
@@ -510,5 +498,3 @@ services(params: { | ||
services?: string[]; | ||
}): Promise<{ | ||
services: Services; | ||
}>; | ||
}): Promise<Services>; | ||
/** | ||
@@ -591,9 +577,7 @@ * @name characteristics (iOS) | ||
* @param {{ address: string }} params | ||
* @returns {Promise<{ rssi: RSSI }>} | ||
* @returns {Promise< RSSI >} | ||
*/ | ||
rssi(params: { | ||
address: string; | ||
}): Promise<{ | ||
rssi: RSSI; | ||
}>; | ||
}): Promise<RSSI>; | ||
/** | ||
@@ -603,3 +587,3 @@ * @name mtu (Android, Android 5+) | ||
* @param {{ address: string, mtu: number }} params | ||
* @returns {Promise<{ mtu: MTU }>} | ||
* @returns {Promise< MTU >} | ||
*/ | ||
@@ -609,5 +593,3 @@ mtu(params: { | ||
mtu?: number; | ||
}): Promise<{ | ||
mtu: MTU; | ||
}>; | ||
}): Promise<MTU>; | ||
/** | ||
@@ -839,3 +821,3 @@ * @name requestConnectionPriority (Android, Android 5+) | ||
SCAN_MODE_LOW_LATENCY: number; | ||
MATCH_MODE_AGRESSIVE: number; | ||
MATCH_MODE_AGGRESSIVE: number; | ||
MATCH_MODE_STICKY: number; | ||
@@ -842,0 +824,0 @@ MATCH_NUM_ONE_ADVERTISEMENT: number; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"Status":{"__symbolic":"interface"},"ConnectionPriority":{"__symbolic":"interface"},"Params":{"__symbolic":"interface"},"InitPeripheralParams":{"__symbolic":"interface"},"InitParams":{"__symbolic":"interface"},"ScanParams":{"__symbolic":"interface"},"NotifyParams":{"__symbolic":"interface"},"RespondParams":{"__symbolic":"interface"},"CharacteristicParams":{"__symbolic":"interface"},"DescriptorParams":{"__symbolic":"interface"},"OperationDescriptorParams":{"__symbolic":"interface"},"WriteCharacteristicParams":{"__symbolic":"interface"},"WriteDescriptorParams":{"__symbolic":"interface"},"AdvertisingParams":{"__symbolic":"interface"},"AdvertiseMode":{"__symbolic":"interface"},"TxPowerLevel":{"__symbolic":"interface"},"AdvertisingParamsAndroid":{"__symbolic":"interface"},"AdvertisingParamsIOS":{"__symbolic":"interface"},"CommonInfo":{"__symbolic":"interface"},"DeviceInfo":{"__symbolic":"interface"},"RSSI":{"__symbolic":"interface"},"MTU":{"__symbolic":"interface"},"BondedStatus":{"__symbolic":"interface"},"PrevConnectionStatus":{"__symbolic":"interface"},"CurrConnectionStatus":{"__symbolic":"interface"},"DiscoverStatus":{"__symbolic":"interface"},"ScanStatus":{"__symbolic":"interface"},"Service":{"__symbolic":"interface"},"Characteristic":{"__symbolic":"interface"},"Descriptor":{"__symbolic":"interface"},"Device":{"__symbolic":"interface"},"Services":{"__symbolic":"interface"},"Descriptors":{"__symbolic":"interface"},"OperationResult":{"__symbolic":"interface"},"UnsubscribeResult":{"__symbolic":"interface"},"DescriptorResult":{"__symbolic":"interface"},"Characteristics":{"__symbolic":"interface"},"InitializeResult":{"__symbolic":"interface"},"BluetoothScanMode":{"SCAN_MODE_OPPORTUNISTIC":-1,"SCAN_MODE_LOW_POWER":0,"SCAN_MODE_BALANCED":1,"SCAN_MODE_LOW_LATENCY":2},"BluetoothMatchMode":{"MATCH_MODE_AGRESSIVE":1,"MATCH_MODE_STICKY":2},"BluetoothMatchNum":{"MATCH_NUM_ONE_ADVERTISEMENT":1,"MATCH_NUM_FEW_ADVERTISEMENT":2,"MATCH_NUM_MAX_ADVERTISEMENT":3},"BluetoothCallbackType":{"CALLBACK_TYPE_ALL_MATCHES":1,"CALLBACK_TYPE_FIRST_MATCH":2,"CALLBACK_TYPE_MATCH_LOST":4},"Error":{"__symbolic":"interface"},"AdapterInfo":{"__symbolic":"interface"},"BluetoothLE":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":428,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":427,"character":1}}],"members":{"initialize":[{"__symbolic":"method"}],"enable":[{"__symbolic":"method"}],"disable":[{"__symbolic":"method"}],"getAdapterInfo":[{"__symbolic":"method"}],"startScan":[{"__symbolic":"method"}],"stopScan":[{"__symbolic":"method"}],"retrieveConnected":[{"__symbolic":"method"}],"bond":[{"__symbolic":"method"}],"unbond":[{"__symbolic":"method"}],"connect":[{"__symbolic":"method"}],"reconnect":[{"__symbolic":"method"}],"disconnect":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"discover":[{"__symbolic":"method"}],"services":[{"__symbolic":"method"}],"characteristics":[{"__symbolic":"method"}],"descriptors":[{"__symbolic":"method"}],"read":[{"__symbolic":"method"}],"subscribe":[{"__symbolic":"method"}],"unsubscribe":[{"__symbolic":"method"}],"write":[{"__symbolic":"method"}],"writeQ":[{"__symbolic":"method"}],"readDescriptor":[{"__symbolic":"method"}],"writeDescriptor":[{"__symbolic":"method"}],"rssi":[{"__symbolic":"method"}],"mtu":[{"__symbolic":"method"}],"requestConnectionPriority":[{"__symbolic":"method"}],"isInitialized":[{"__symbolic":"method"}],"isEnabled":[{"__symbolic":"method"}],"isScanning":[{"__symbolic":"method"}],"isBonded":[{"__symbolic":"method"}],"wasConnected":[{"__symbolic":"method"}],"isConnected":[{"__symbolic":"method"}],"isDiscovered":[{"__symbolic":"method"}],"hasPermission":[{"__symbolic":"method"}],"requestPermission":[{"__symbolic":"method"}],"isLocationEnabled":[{"__symbolic":"method"}],"requestLocation":[{"__symbolic":"method"}],"initializePeripheral":[{"__symbolic":"method"}],"addService":[{"__symbolic":"method"}],"removeService":[{"__symbolic":"method"}],"removeAllServices":[{"__symbolic":"method"}],"startAdvertising":[{"__symbolic":"method"}],"stopAdvertising":[{"__symbolic":"method"}],"isAdvertising":[{"__symbolic":"method"}],"respond":[{"__symbolic":"method"}],"notify":[{"__symbolic":"method"}],"encodedStringToBytes":[{"__symbolic":"method"}],"bytesToEncodedString":[{"__symbolic":"method"}],"stringToBytes":[{"__symbolic":"method"}],"bytesToString":[{"__symbolic":"method"}],"SCAN_MODE_OPPORTUNISTIC":[{"__symbolic":"property"}],"SCAN_MODE_LOW_POWER":[{"__symbolic":"property"}],"SCAN_MODE_BALANCED":[{"__symbolic":"property"}],"SCAN_MODE_LOW_LATENCY":[{"__symbolic":"property"}],"MATCH_MODE_AGRESSIVE":[{"__symbolic":"property"}],"MATCH_MODE_STICKY":[{"__symbolic":"property"}],"MATCH_NUM_ONE_ADVERTISEMENT":[{"__symbolic":"property"}],"MATCH_NUM_FEW_ADVERTISEMENT":[{"__symbolic":"property"}],"MATCH_NUM_MAX_ADVERTISEMENT":[{"__symbolic":"property"}],"CALLBACK_TYPE_ALL_MATCHES":[{"__symbolic":"property"}],"CALLBACK_TYPE_FIRST_MATCH":[{"__symbolic":"property"}],"CALLBACK_TYPE_MATCH_LOST":[{"__symbolic":"property"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"Status":{"__symbolic":"interface"},"ConnectionPriority":{"__symbolic":"interface"},"Params":{"__symbolic":"interface"},"InitPeripheralParams":{"__symbolic":"interface"},"InitParams":{"__symbolic":"interface"},"ScanParams":{"__symbolic":"interface"},"NotifyParams":{"__symbolic":"interface"},"RespondParams":{"__symbolic":"interface"},"CharacteristicParams":{"__symbolic":"interface"},"DescriptorParams":{"__symbolic":"interface"},"OperationDescriptorParams":{"__symbolic":"interface"},"WriteCharacteristicParams":{"__symbolic":"interface"},"WriteDescriptorParams":{"__symbolic":"interface"},"AdvertisingParams":{"__symbolic":"interface"},"AdvertiseMode":{"__symbolic":"interface"},"TxPowerLevel":{"__symbolic":"interface"},"AdvertisingParamsAndroid":{"__symbolic":"interface"},"AdvertisingParamsIOS":{"__symbolic":"interface"},"CommonInfo":{"__symbolic":"interface"},"DeviceInfo":{"__symbolic":"interface"},"RSSI":{"__symbolic":"interface"},"MTU":{"__symbolic":"interface"},"BondedStatus":{"__symbolic":"interface"},"PrevConnectionStatus":{"__symbolic":"interface"},"CurrConnectionStatus":{"__symbolic":"interface"},"DiscoverStatus":{"__symbolic":"interface"},"ScanStatus":{"__symbolic":"interface"},"Service":{"__symbolic":"interface"},"Characteristic":{"__symbolic":"interface"},"Descriptor":{"__symbolic":"interface"},"Device":{"__symbolic":"interface"},"Services":{"__symbolic":"interface"},"Descriptors":{"__symbolic":"interface"},"OperationResult":{"__symbolic":"interface"},"UnsubscribeResult":{"__symbolic":"interface"},"DescriptorResult":{"__symbolic":"interface"},"Characteristics":{"__symbolic":"interface"},"InitializeResult":{"__symbolic":"interface"},"BluetoothScanMode":{"SCAN_MODE_OPPORTUNISTIC":-1,"SCAN_MODE_LOW_POWER":0,"SCAN_MODE_BALANCED":1,"SCAN_MODE_LOW_LATENCY":2},"BluetoothMatchMode":{"MATCH_MODE_AGRESSIVE":1,"MATCH_MODE_STICKY":2},"BluetoothMatchNum":{"MATCH_NUM_ONE_ADVERTISEMENT":1,"MATCH_NUM_FEW_ADVERTISEMENT":2,"MATCH_NUM_MAX_ADVERTISEMENT":3},"BluetoothCallbackType":{"CALLBACK_TYPE_ALL_MATCHES":1,"CALLBACK_TYPE_FIRST_MATCH":2,"CALLBACK_TYPE_MATCH_LOST":4},"Error":{"__symbolic":"interface"},"AdapterInfo":{"__symbolic":"interface"},"BluetoothLE":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":428,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":427,"character":1}}],"members":{"initialize":[{"__symbolic":"method"}],"enable":[{"__symbolic":"method"}],"disable":[{"__symbolic":"method"}],"getAdapterInfo":[{"__symbolic":"method"}],"startScan":[{"__symbolic":"method"}],"stopScan":[{"__symbolic":"method"}],"retrieveConnected":[{"__symbolic":"method"}],"bond":[{"__symbolic":"method"}],"unbond":[{"__symbolic":"method"}],"connect":[{"__symbolic":"method"}],"reconnect":[{"__symbolic":"method"}],"disconnect":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"discover":[{"__symbolic":"method"}],"services":[{"__symbolic":"method"}],"characteristics":[{"__symbolic":"method"}],"descriptors":[{"__symbolic":"method"}],"read":[{"__symbolic":"method"}],"subscribe":[{"__symbolic":"method"}],"unsubscribe":[{"__symbolic":"method"}],"write":[{"__symbolic":"method"}],"writeQ":[{"__symbolic":"method"}],"readDescriptor":[{"__symbolic":"method"}],"writeDescriptor":[{"__symbolic":"method"}],"rssi":[{"__symbolic":"method"}],"mtu":[{"__symbolic":"method"}],"requestConnectionPriority":[{"__symbolic":"method"}],"isInitialized":[{"__symbolic":"method"}],"isEnabled":[{"__symbolic":"method"}],"isScanning":[{"__symbolic":"method"}],"isBonded":[{"__symbolic":"method"}],"wasConnected":[{"__symbolic":"method"}],"isConnected":[{"__symbolic":"method"}],"isDiscovered":[{"__symbolic":"method"}],"hasPermission":[{"__symbolic":"method"}],"requestPermission":[{"__symbolic":"method"}],"isLocationEnabled":[{"__symbolic":"method"}],"requestLocation":[{"__symbolic":"method"}],"initializePeripheral":[{"__symbolic":"method"}],"addService":[{"__symbolic":"method"}],"removeService":[{"__symbolic":"method"}],"removeAllServices":[{"__symbolic":"method"}],"startAdvertising":[{"__symbolic":"method"}],"stopAdvertising":[{"__symbolic":"method"}],"isAdvertising":[{"__symbolic":"method"}],"respond":[{"__symbolic":"method"}],"notify":[{"__symbolic":"method"}],"encodedStringToBytes":[{"__symbolic":"method"}],"bytesToEncodedString":[{"__symbolic":"method"}],"stringToBytes":[{"__symbolic":"method"}],"bytesToString":[{"__symbolic":"method"}],"SCAN_MODE_OPPORTUNISTIC":[{"__symbolic":"property"}],"SCAN_MODE_LOW_POWER":[{"__symbolic":"property"}],"SCAN_MODE_BALANCED":[{"__symbolic":"property"}],"SCAN_MODE_LOW_LATENCY":[{"__symbolic":"property"}],"MATCH_MODE_AGGRESSIVE":[{"__symbolic":"property"}],"MATCH_MODE_STICKY":[{"__symbolic":"property"}],"MATCH_NUM_ONE_ADVERTISEMENT":[{"__symbolic":"property"}],"MATCH_NUM_FEW_ADVERTISEMENT":[{"__symbolic":"property"}],"MATCH_NUM_MAX_ADVERTISEMENT":[{"__symbolic":"property"}],"CALLBACK_TYPE_ALL_MATCHES":[{"__symbolic":"property"}],"CALLBACK_TYPE_FIRST_MATCH":[{"__symbolic":"property"}],"CALLBACK_TYPE_MATCH_LOST":[{"__symbolic":"property"}]}}}}] |
@@ -1,1 +0,1 @@ | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/bluetooth-le","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^6.3.0","@ionic-native/core":"^5.1.0"},"version":"5.3.0"} | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/bluetooth-le","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^6.3.0","@ionic-native/core":"^5.1.0"},"version":"5.4.0"} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
197055
2022