Constructor and Description |
---|
Builder() |
Builder(java.util.UUID characteristicUuid) |
Builder(java.util.UUID serviceUuid,
java.util.UUID characteristicUuid) |
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
build()
Builds, and returns the list of
BleRead s. |
BleRead[] |
buildArray() |
B |
next()
Move on to another
BleRead instance, based on the last one (so if you only need to change the char UUID, you don't have to set all
other fields again). |
B |
nextNew()
Move on to another
BleRead instance, with the new instance having no fields set. |
B |
setCharacteristicUUID(java.util.UUID uuid)
Set the characteristic UUID.
|
B |
setDescriptorFilter(DescriptorFilter filter)
Set the
DescriptorFilter to determine which characteristic to operate on, if there are multiple with the same UUID in the same
BluetoothGattService . |
B |
setReadWriteListener(ReadWriteListener listener)
Set the
ReadWriteListener for listening to the callback of the operation you wish to perform. |
B |
setServiceUUID(java.util.UUID uuid)
Set the service UUID for this operation.
|
public Builder()
public Builder(java.util.UUID characteristicUuid)
public Builder(java.util.UUID serviceUuid, java.util.UUID characteristicUuid)
public final BleRead[] buildArray()
public final B setServiceUUID(java.util.UUID uuid)
public final B setCharacteristicUUID(java.util.UUID uuid)
public final B setReadWriteListener(ReadWriteListener listener)
ReadWriteListener
for listening to the callback of the operation you wish to perform.public final B setDescriptorFilter(DescriptorFilter filter)
DescriptorFilter
to determine which characteristic to operate on, if there are multiple with the same UUID
in the same
BluetoothGattService
.public final B next()
BleRead
instance, based on the last one (so if you only need to change the char UUID, you don't have to set all
other fields again).public final B nextNew()
BleRead
instance, with the new instance having no fields set.public final java.util.List<T> build()
BleRead
s.