Methods Summary |
---|
public void | onCharacteristicReadRequest(android.bluetooth.BluetoothDevice device, int requestId, int offset, BluetoothGattCharacteristic characteristic)A remote client has requested to read a local characteristic.
An application must call {@link BluetoothGattServer#sendResponse}
to complete the request.
|
public void | onCharacteristicWriteRequest(android.bluetooth.BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value)A remote client has requested to write to a local characteristic.
An application must call {@link BluetoothGattServer#sendResponse}
to complete the request.
|
public void | onConnectionStateChange(android.bluetooth.BluetoothDevice device, int status, int newState)Callback indicating when a remote device has been connected or disconnected.
|
public void | onDescriptorReadRequest(android.bluetooth.BluetoothDevice device, int requestId, int offset, BluetoothGattDescriptor descriptor)A remote client has requested to read a local descriptor.
An application must call {@link BluetoothGattServer#sendResponse}
to complete the request.
|
public void | onDescriptorWriteRequest(android.bluetooth.BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value)A remote client has requested to write to a local descriptor.
An application must call {@link BluetoothGattServer#sendResponse}
to complete the request.
|
public void | onExecuteWrite(android.bluetooth.BluetoothDevice device, int requestId, boolean execute)Execute all pending write operations for this device.
An application must call {@link BluetoothGattServer#sendResponse}
to complete the request.
|
public void | onMtuChanged(android.bluetooth.BluetoothDevice device, int mtu)Callback indicating the MTU for a given device connection has changed.
This callback will be invoked if a remote client has requested to change
the MTU for a given connection.
|
public void | onNotificationSent(android.bluetooth.BluetoothDevice device, int status)Callback invoked when a notification or indication has been sent to
a remote device.
When multiple notifications are to be sent, an application must
wait for this callback to be received before sending additional
notifications.
|
public void | onServiceAdded(int status, BluetoothGattService service)Indicates whether a local service has been added successfully.
|