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.BluetoothLEHandler
setConnectionListener
in interface BtLowEnergyManager.BluetoothLEHandler
public boolean onScanResult(android.bluetooth.le.ScanResult result)
BtLowEnergyManager.BluetoothLEHandler
onScanResult
in interface BtLowEnergyManager.BluetoothLEHandler
result
- the scan result to see if it is handled.public void connect()
BtLowEnergyManager.BluetoothLEHandler
connect
in interface BtLowEnergyManager.BluetoothLEHandler
public void close()
BtLowEnergyManager.BluetoothLEHandler
close
in interface BtLowEnergyManager.BluetoothLEHandler
public android.bluetooth.BluetoothDevice getDevice()
BtLowEnergyManager.BluetoothLEHandler
getDevice
in interface BtLowEnergyManager.BluetoothLEHandler
public void dispose()
BtLowEnergyManager.BluetoothLEHandler
dispose
in interface BtLowEnergyManager.BluetoothLEHandler