Package 

Interface WriteProgressCallback

    • Method Summary

      Modifier and Type Method Description
      abstract void onPacketSent(@NonNull() BluetoothDevice device, @Nullable() Array<byte> data, @IntRange(from = 0) int index) Callback called each time a packet has been sent when DataSplitter was used.
      • Methods inherited from class java.lang.Object

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

      • onPacketSent

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

        Callback called each time a packet has been sent when DataSplitter was used.

        Parameters:
        device - the target device.
        data - the last packet sent.
        index - the index of a packet that the initial Data was cut into.