public class UpgradeProgress extends Object
This object is usually passed through a callback that has been previously registered with a method that performs the upgrade.
Constructor and Description |
---|
UpgradeProgress(int progress,
boolean isComplete) |
UpgradeProgress(int progress,
boolean isComplete,
String id,
UpgradeStatus status) |
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets the id of the device that is currently upgrading.
|
int |
getProgress()
Gets the progress of an upgrade that is currently in progress.
|
Optional<UpgradeStatus> |
getStatus()
Returns the status of the upgrade.
|
boolean |
isComplete()
Gets the status of an upgrade that is currently in progress.
|
public UpgradeProgress(int progress, boolean isComplete)
public UpgradeProgress(int progress, boolean isComplete, String id, UpgradeStatus status)
public int getProgress()
public boolean isComplete()
public String getId()
public Optional<UpgradeStatus> getStatus()
Copyright © 2020. All rights reserved.