mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
parent
ceb4217415
commit
51bc5ef542
@ -400,17 +400,10 @@ export class BLE {
|
|||||||
/**
|
/**
|
||||||
* Report if bluetooth is enabled.
|
* Report if bluetooth is enabled.
|
||||||
*
|
*
|
||||||
* @usage
|
* @return {Promise<void>} Returns a Promise that resolves if Bluetooth is enabled, and rejects if disabled.
|
||||||
* ```
|
|
||||||
* BLE.isEnabled().then(
|
|
||||||
* () => { console.log('enabled'); },
|
|
||||||
* () => { console.log('not enabled'); }
|
|
||||||
* );
|
|
||||||
* ```
|
|
||||||
* @return Returns a Promise.
|
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static isEnabled(): Promise<any> { return; }
|
static isEnabled(): Promise<void> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open System Bluetooth settings (Android only).
|
* Open System Bluetooth settings (Android only).
|
||||||
|
Loading…
Reference in New Issue
Block a user