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(double progress,
boolean isComplete) |
UpgradeProgress(double 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.
|
double |
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(double progress, boolean isComplete)
public UpgradeProgress(double progress, boolean isComplete, String id, UpgradeStatus status)
public double getProgress()
public boolean isComplete()
public String getId()
public Optional<UpgradeStatus> getStatus()
Copyright © 2020. All rights reserved.