Download

abstract class Download : Transfer

Inheritors

Functions

Link copied to clipboard
open fun getData(): @Nullable Array<Byte>
Returns the data associated with this object.
Link copied to clipboard
open fun getOffset(): Int
Returns the current offset.
Link copied to clipboard
open fun isFinished(): Boolean
Returns true if transfer is complete.
Link copied to clipboard
open fun onCanceled()
Called when the transfer has been cancelled.
Link copied to clipboard
open fun onCompleted()
Called when the transfer is complete.
Link copied to clipboard
open fun onFailed(@NotNull e: @NotNull McuMgrException)
Called when a response with failure has been received.
Link copied to clipboard
open fun onProgressChanged(current: Int, total: Int, timestamp: Long)
Called when a response has been received successfully.
Link copied to clipboard
open fun reset()
Resets the transfer status parameters.
Link copied to clipboard
open fun send(offset: Int): McuMgrResponse
Synchronously sends or requests the part of data from given offset.
Link copied to clipboard
Synchronously sends or requests the next part of data.