public interface BluetoothDetectorHandler
| 限定符和类型 | 方法和说明 |
|---|---|
void |
startScan(BluetoothDetectorCallBack callBack)
开启扫描,并回调至
BluetoothDetectorCallBack.onScan(BluetoothDevice, int, byte[]) 方法
此方法调用请放在 Activity.onCreate(Bundle) 方法里执行
与 stopScan(BluetoothDetectorCallBack) 方法应是成对出现 |
void |
startScan(BluetoothFilter filter,
BluetoothDetectorCallBack callBack)
开启扫描,并回调至
BluetoothDetectorCallBack.onScan(BluetoothDevice, int, byte[]) 方法
此方法调用请放在 Activity.onCreate(Bundle) 方法里执行
与 stopScan(BluetoothDetectorCallBack) 方法应是成对出现 |
void |
stopScan(BluetoothDetectorCallBack callBack)
关闭扫描,并移除回调
此方法调用请放在
Activity.onDestroy() 方法里执行
与 startScan(BluetoothDetectorCallBack) 方法应是成对出现 |
void startScan(BluetoothDetectorCallBack callBack)
BluetoothDetectorCallBack.onScan(BluetoothDevice, int, byte[]) 方法
此方法调用请放在 Activity.onCreate(Bundle) 方法里执行
与 stopScan(BluetoothDetectorCallBack) 方法应是成对出现callBack - void startScan(BluetoothFilter filter, BluetoothDetectorCallBack callBack)
BluetoothDetectorCallBack.onScan(BluetoothDevice, int, byte[]) 方法
此方法调用请放在 Activity.onCreate(Bundle) 方法里执行
与 stopScan(BluetoothDetectorCallBack) 方法应是成对出现filter - callBack - void stopScan(BluetoothDetectorCallBack callBack)
Activity.onDestroy() 方法里执行
与 startScan(BluetoothDetectorCallBack) 方法应是成对出现callBack -