public static interface BtLowEnergyManager.BluetoothLEHandler
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connection but the handler can be reused
|
void |
connect()
Connects to the bluetooth device.
|
void |
dispose()
Clean up the handler, close connections and unregister associated callbacks.
|
android.bluetooth.BluetoothDevice |
getDevice()
Returns the underlying BluetoothDevice associated with this handler.
|
boolean |
onScanResult(android.bluetooth.le.ScanResult scanResult)
Is called back during the scanning process.
|
void |
setConnectionListener(BtLowEnergyManager.BluetoothLEConnectionStatus connectionStatus)
Register the Bluetooth Connection listener with the handler.
|
boolean onScanResult(android.bluetooth.le.ScanResult scanResult)
scanResult
- the scan result to see if it is handled.void connect()
void close()
void dispose()
android.bluetooth.BluetoothDevice getDevice()
void setConnectionListener(BtLowEnergyManager.BluetoothLEConnectionStatus connectionStatus)