Package 

Class IllegalOperationChecker


  • 
    public class IllegalOperationChecker
    
                        

    Class for checking whether the requested operation is legal on chosen characteristic.

    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 on
        neededProperties - properties required for the operation to be successfully completed