public class DfuServiceController extends java.lang.Object implements DfuController
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.
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts the DFU operation after it has started.
|
boolean |
isAborted()
Returns true if DFU was aborted.
|
boolean |
isPaused()
Returns true if the DFU operation was paused.
|
void |
pause()
Pauses the DFU operation.
|
void |
resume()
Resumes a previously paused DFU operation.
|
public void pause()
DfuControllerDfuController.resume() to resume, or DfuController.abort() to cancel.
This method does nothing if DFU operation was already paused.pause in interface DfuControllerpublic void resume()
DfuControllerresume in interface DfuControllerDfuController.pause()public void abort()
DfuControllerabort in interface DfuControllerpublic boolean isPaused()
resume().public boolean isAborted()