Skip to main content
Use this API to listen for changes in the Bluetooth adapter state, such as when Bluetooth is turned on or off.

Parameters

Callback Parameters

Code Example

Basic Usage

Handle Bluetooth Toggle

Auto-Resume Discovery

my.offBluetoothAdapterStateChange

Stop listening

my.getBluetoothAdapterState

Get current state