Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Success Callback Parameters
| Property | Type | Description |
|---|---|---|
| available | Boolean | Whether Bluetooth is available |
| discovering | Boolean | Whether currently discovering devices |
Code Example
Basic Usage
Check Before Operations
Status Display
Related APIs
my.openBluetoothAdapter
Initialize Bluetooth
my.onBluetoothAdapterStateChange
Listen for state changes