Add API to disable Bluetooth (#113)
* Add api to disable Bluetooth * Implement Android support * Fix apple build * Update Readme * Combine rows --------- Co-authored-by: Foti Dim <fdimanidis@gmail.com>
This commit is contained in:
@@ -36,7 +36,7 @@ A cross-platform (Android/iOS/macOS/Windows/Linux/Web) Bluetooth Low Energy (BLE
|
||||
| isPaired | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
|
||||
| onPairingStateChange | ✔️ | ⏺ | ⏺ | ✔️ | ✔️ | ⏺ |
|
||||
| getBluetoothAvailabilityState | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ |
|
||||
| enableBluetooth | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |
|
||||
| enable/disable Bluetooth | ✔️ | ❌ | ❌ | ✔️ | ✔️ | ❌ |
|
||||
| onAvailabilityChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
|
||||
| requestMtu | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ |
|
||||
|
||||
@@ -229,6 +229,9 @@ UniversalBle.onAvailabilityChange = (state) {
|
||||
|
||||
// Enable Bluetooth programmatically
|
||||
UniversalBle.enableBluetooth();
|
||||
|
||||
// Disable Bluetooth programmatically
|
||||
UniversalBle.disableBluetooth();
|
||||
```
|
||||
|
||||
## Command Queue
|
||||
|
||||
Reference in New Issue
Block a user