public class IllegalOperationChecker
extends java.lang.Object
| Constructor and Description |
|---|
IllegalOperationChecker(IllegalOperationHandler resultHandler) |
| Modifier and Type | Method and Description |
|---|---|
Completable |
checkAnyPropertyMatches(android.bluetooth.BluetoothGattCharacteristic characteristic,
int neededProperties)
This method checks whether the supplied characteristic possesses properties supporting the requested kind of operation, specified by
the supplied bitmask.
|
public IllegalOperationChecker(IllegalOperationHandler resultHandler)
public Completable checkAnyPropertyMatches(android.bluetooth.BluetoothGattCharacteristic characteristic,
int neededProperties)
BleIllegalOperationException if there was no match between supported and necessary properties of characteristic and
check has not been suppressedcharacteristic - a BluetoothGattCharacteristic the operation is done onneededProperties - properties required for the operation to be successfully completedCompletable deferring execution of the check till subscription