com.ugrokit.api.Ugi.FirmwareUpdateDelegate Interface Reference

Overview

Delegate passed to firmwareUpdate method.

Public Member Functions

boolean firmwareUpdateProgress (int amountDone, int amountTotal, boolean canCancel)
 Firmware update progress. More...
 
void firmwareUpdateCompleted (FirmwareUpdateReturnValues result, int seconds)
 Firmware update complete. More...
 

Member Function Documentation

◆ firmwareUpdateProgress()

boolean com.ugrokit.api.Ugi.FirmwareUpdateDelegate.firmwareUpdateProgress ( int  amountDone,
int  amountTotal,
boolean  canCancel 
)

Firmware update progress.

Parameters
amountDoneamount of the update completed
amountTotalamount in the complete update
canCanceltrue if the update can be cancelled at this point
Returns
true to cancel (ignored if canCancel is false, however)

◆ firmwareUpdateCompleted()

void com.ugrokit.api.Ugi.FirmwareUpdateDelegate.firmwareUpdateCompleted ( FirmwareUpdateReturnValues  result,
int  seconds 
)

Firmware update complete.

Parameters
resultResult of the update
secondsTime the update took in seconds