public static class RxBleClientMock.CharacteristicsBuilder
extends java.lang.Object
| Constructor and Description |
|---|
CharacteristicsBuilder()
Build a new
BluetoothGattCharacteristic list. |
| Modifier and Type | Method and Description |
|---|---|
RxBleClientMock.CharacteristicsBuilder |
addCharacteristic(java.util.UUID uuid,
byte[] data,
int properties,
java.util.List<android.bluetooth.BluetoothGattDescriptor> descriptors)
Adds a
BluetoothGattCharacteristic with specified parameters. |
RxBleClientMock.CharacteristicsBuilder |
addCharacteristic(java.util.UUID uuid,
byte[] data,
java.util.List<android.bluetooth.BluetoothGattDescriptor> descriptors)
Adds a
BluetoothGattCharacteristic with specified parameters. |
java.util.List<android.bluetooth.BluetoothGattCharacteristic> |
build()
Create the
List of BluetoothGattCharacteristic using the configured values. |
public CharacteristicsBuilder()
BluetoothGattCharacteristic list.
Should be used in pair with RxBleClientMock.DeviceBuilder.addService(java.util.UUID, java.util.List<android.bluetooth.BluetoothGattCharacteristic>)public RxBleClientMock.CharacteristicsBuilder addCharacteristic(java.util.UUID uuid, byte[] data, java.util.List<android.bluetooth.BluetoothGattDescriptor> descriptors)
BluetoothGattCharacteristic with specified parameters.uuid - characteristic UUIDdata - locally stored value of the characteristicdescriptors - list of characteristic descriptors. Use RxBleClientMock.DescriptorsBuilder to create them.public RxBleClientMock.CharacteristicsBuilder addCharacteristic(java.util.UUID uuid, byte[] data, int properties, java.util.List<android.bluetooth.BluetoothGattDescriptor> descriptors)
BluetoothGattCharacteristic with specified parameters.uuid - characteristic UUIDdata - locally stored value of the characteristicproperties - OR-ed BluetoothGattCharacteristic property constantsdescriptors - list of characteristic descriptors. Use RxBleClientMock.DescriptorsBuilder to create them.public java.util.List<android.bluetooth.BluetoothGattCharacteristic> build()
List of BluetoothGattCharacteristic using the configured values.