public class UpdateStatus
Represents the firmware update status of a device.
| Constructor and Description |
|---|
UpdateStatus(UpdateStatus.State state,
java.lang.String version,
int progress)
Creates an instance of
class UpdateStatus. |
| Modifier and Type | Method and Description |
|---|---|
int |
getProgress()
The download progress.
|
UpdateStatus.State |
getState()
The firmware update state.
|
java.lang.String |
getVersion()
The version of the firmware to update.
|
public UpdateStatus(@NotNull
UpdateStatus.State state,
@NotNull
java.lang.String version,
int progress)
Creates an instance of class UpdateStatus.
state - The firmware update state.version - The version of the firmware to update.progress - The download progress. Only available if state equals DOWNLOADING.class UpdateStatus@NotNull public UpdateStatus.State getState()
The firmware update state.
@NotNull public java.lang.String getVersion()
The version of the firmware to update.
public int getProgress()
The download progress.
Only available if state equals DOWNLOADING.