public interface BluetoothStatusListener
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
BluetoothStatusListener.DeviceStatus |
static interface |
BluetoothStatusListener.ScanStatus |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEVICE_STATUS_START
设备为打开状态
|
static int |
DEVICE_STATUS_STOP
设备为关闭状态
|
static int |
SCAN_STATUS_START
正在扫描状态
|
static int |
SCAN_STATUS_STOP
停止扫描状态
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onDeviceStatus(int status)
设备状态/蓝牙状态,当前设备状态发生变化时回调此方法
|
void |
onScanStatus(int status)
扫描状态,当前扫描状态发生变化时回调此方法
|
static final int SCAN_STATUS_START
static final int SCAN_STATUS_STOP
static final int DEVICE_STATUS_START
static final int DEVICE_STATUS_STOP
void onScanStatus(int status)
status - SCAN_STATUS_START,
SCAN_STATUS_STOPvoid onDeviceStatus(int status)
status - DEVICE_STATUS_START,
DEVICE_STATUS_STOP