Package 

Interface ReadProgressCallback

    • Method Summary

      Modifier and Type Method Description
      abstract void onPacketReceived(@NonNull() BluetoothDevice device, @Nullable() Array<byte> data, @IntRange(from = 0) int index) Callback received each time the value was read or has changed using notifications orindications when DataMerger was used.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onPacketReceived

         abstract void onPacketReceived(@NonNull() BluetoothDevice device, @Nullable() Array<byte> data, @IntRange(from = 0) int index)

        Callback received each time the value was read or has changed using notifications orindications when DataMerger was used.

        Parameters:
        device - the target device.
        data - the last packet received.
        index - the index of a packet that will be merged into a single Data.