Skip to content

Commit

Permalink
feat(ble): add startScanWithOptions
Browse files Browse the repository at this point in the history
closes #539
  • Loading branch information
ihadeed committed Sep 25, 2016
1 parent 60b7c74 commit 79f0a3f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/plugins/ble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

This comment has been minimized.

Copy link
@ramonornela

ramonornela Sep 25, 2016

Contributor

Missing returns

This comment has been minimized.

Copy link
@ihadeed

ihadeed Sep 25, 2016

Author Collaborator

@ramonornela thanks I just added it

* @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`.
*
Expand Down

0 comments on commit 79f0a3f

Please sign in to comment.