public class PLRFBluetoothLEHandler extends java.lang.Object implements 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 result)
Is called back during the scanning process.
|
void |
setConnectionListener(BtLowEnergyManager.BluetoothLEConnectionStatus connectionStatus)
Register the Bluetooth Connection listener with the handler.
|
public void setConnectionListener(BtLowEnergyManager.BluetoothLEConnectionStatus connectionStatus)
BtLowEnergyManager.BluetoothLEHandlersetConnectionListener in interface BtLowEnergyManager.BluetoothLEHandlerpublic boolean onScanResult(android.bluetooth.le.ScanResult result)
BtLowEnergyManager.BluetoothLEHandleronScanResult in interface BtLowEnergyManager.BluetoothLEHandlerresult - the scan result to see if it is handled.public void connect()
BtLowEnergyManager.BluetoothLEHandlerconnect in interface BtLowEnergyManager.BluetoothLEHandlerpublic void close()
BtLowEnergyManager.BluetoothLEHandlerclose in interface BtLowEnergyManager.BluetoothLEHandlerpublic android.bluetooth.BluetoothDevice getDevice()
BtLowEnergyManager.BluetoothLEHandlergetDevice in interface BtLowEnergyManager.BluetoothLEHandlerpublic void dispose()
BtLowEnergyManager.BluetoothLEHandlerdispose in interface BtLowEnergyManager.BluetoothLEHandler