ModuleInstallStatusUpdate

public class ModuleInstallStatusUpdate extends Object
implements Parcelable

The status update of a ModuleInstallRequest.

Nested Class Summary

@interface ModuleInstallStatusUpdate.InstallState The current install state for the install request. 
class ModuleInstallStatusUpdate.ProgressInfo Download progress information for an ModuleInstallStatusUpdate

Inherited Constant Summary

Field Summary

public static final Creator<ModuleInstallStatusUpdate> CREATOR

Public Method Summary

int
getErrorCode()
Returns the error code from ModuleInstallStatusCodes, or ModuleInstallStatusCodes.SUCCESS if the install is successful or in progress.
int
getInstallState()
Returns the ModuleInstallStatusUpdate.InstallState of an optional module install session.
ModuleInstallStatusUpdate.ProgressInfo
getProgressInfo()
Returns the download progress information including the bytes downloaded so far and total bytes to download.
int
getSessionId()
Returns the session id that corresponding to a ModuleInstallRequest.
void
writeToParcel(Parcel parcel, int i)

Inherited Method Summary

Fields

public static final Creator<ModuleInstallStatusUpdate> CREATOR

Public Methods

public int getErrorCode ()

Returns the error code from ModuleInstallStatusCodes, or ModuleInstallStatusCodes.SUCCESS if the install is successful or in progress.

public int getInstallState ()

Returns the ModuleInstallStatusUpdate.InstallState of an optional module install session.

public ModuleInstallStatusUpdate.ProgressInfo getProgressInfo ()

Returns the download progress information including the bytes downloaded so far and total bytes to download.

When there are modules to download, the progress info would be provided on the following state: ModuleInstallStatusUpdate.InstallState.STATE_DOWNLOADING, ModuleInstallStatusUpdate.InstallState.STATE_DOWNLOAD_PAUSED, ModuleInstallStatusUpdate.InstallState.STATE_INSTALLING and ModuleInstallStatusUpdate.InstallState.STATE_COMPLETED. Otherwise, this method would return null.

public int getSessionId ()

Returns the session id that corresponding to a ModuleInstallRequest.

public void writeToParcel (Parcel parcel, int i)