feat(ble): add startScanWithOptions

closes #539
This commit is contained in:
Ibrahim Hadeed 2016-09-25 18:36:00 -04:00
parent 60b7c7469a
commit 79f0a3fc7b
No known key found for this signature in database
GPG Key ID: 0431793F665481A4

View File

@ -207,6 +207,18 @@ export class BLE {
})
static startScan(services: string[]): Observable<any> { return; }
/**
* Scans for BLE devices. This function operates similarly to the `startScan` function, but allows you to specify extra options (like allowing duplicate device reports).
* @param {string[]} services List of service UUIDs to discover, or `[]` to find all devices
* @param options {any}
*/
@Cordova({
observable: true,
clearFunction: 'stopScan',
clearWithArgs: true
})
static startScanWithOptions(services: string[], options: {reportDuplicates?: boolean} | any): Observable<any> { return; }
/**
* Stop a scan started by `startScan`.
*