-
public class IllegalOperationCheckerClass for checking whether the requested operation is legal on chosen characteristic.
-
-
Constructor Summary
Constructors Constructor Description IllegalOperationChecker(IllegalOperationHandler resultHandler)
-
Method Summary
Modifier and Type Method Description CompletablecheckAnyPropertyMatches(BluetoothGattCharacteristic characteristic, int neededProperties)This method checks whether the supplied characteristic possesses properties supporting the requested kind of operation, specified bythe supplied bitmask. -
-
Constructor Detail
-
IllegalOperationChecker
IllegalOperationChecker(IllegalOperationHandler resultHandler)
-
-
Method Detail
-
checkAnyPropertyMatches
Completable checkAnyPropertyMatches(BluetoothGattCharacteristic characteristic, int neededProperties)
This method checks whether the supplied characteristic possesses properties supporting the requested kind of operation, specified bythe supplied bitmask.Emits BleIllegalOperationException if there was no match between supported and necessary properties of characteristic andcheck has not been suppressed
- Parameters:
characteristic- a BluetoothGattCharacteristic the operation is done onneededProperties- properties required for the operation to be successfully completed
-
-
-
-