public interface ServerObserver
| Modifier and Type | Method and Description |
|---|---|
void |
onDeviceConnectedToServer(android.bluetooth.BluetoothDevice device)
This methods is called whenever a Bluetooth LE device connects or when was already connected
when the
BleServerManager was created. |
void |
onDeviceDisconnectedFromServer(android.bluetooth.BluetoothDevice device)
Called when the device has disconnected (when the callback returned
BluetoothGattServerCallback.onConnectionStateChange(BluetoothDevice, int, int)
with state DISCONNECTED). |
void |
onServerReady()
Called when the server was started and all services have been added successfully.
|
void onServerReady()
void onDeviceConnectedToServer(@NonNull
android.bluetooth.BluetoothDevice device)
BleServerManager was created.device - the connected device.void onDeviceDisconnectedFromServer(@NonNull
android.bluetooth.BluetoothDevice device)
BluetoothGattServerCallback.onConnectionStateChange(BluetoothDevice, int, int)
with state DISCONNECTED).device - the device that got disconnected.