DfuServiceController

A controller class allows you to pause, resume or abort the DFU operation in a easy way.

Keep in mind that there may be only one DFU operation at a time, and other instances of a DfuServiceController (for example obtained with a previous DFU) will work for all DFU processes, but the isPaused and isAborted methods may report incorrect values.

Added in DFU Library version 1.0.2.

Functions

Link copied to clipboard
open fun abort()
Aborts the DFU operation after it has started.
Link copied to clipboard
open fun isAborted(): Boolean
Returns true if DFU was aborted.
Link copied to clipboard
open fun isPaused(): Boolean
Returns true if the DFU operation was paused.
Link copied to clipboard
open fun pause()
Pauses the DFU operation.
Link copied to clipboard
open fun resume()
Resumes a previously paused DFU operation.