FileDocCategorySizeDatePackage
IRestoreObserver.javaAPI DocAndroid 5.1 API7556Sat Mar 14 05:47:58 GMT 2015android.app.backup

IRestoreObserver

public interface IRestoreObserver implements android.os.IInterface
Callback class for receiving progress reports during a restore operation.
hide

Fields Summary
Constructors Summary
Methods Summary
public voidonUpdate(int nowBeingRestored, java.lang.String curentPackage)
An indication of which package is being restored currently, out of the total number provided in the {@link #restoreStarting(int numPackages)} callback. This method is not guaranteed to be called.

param
nowBeingRestored The index, between 1 and the numPackages parameter to the restoreStarting() callback, of the package now being restored.
param
currentPackage The name of the package now being restored.

public voidrestoreFinished(int error)
The restore operation has completed.

param
error Zero on success; a nonzero error code if the restore operation as a whole failed.

public voidrestoreSetsAvailable(android.app.backup.RestoreSet[] result)
Supply a list of the restore datasets available from the current transport. This method is invoked as a callback following the application's use of the {@link android.app.backup.IRestoreSession.getAvailableRestoreSets} method.

param
result An array of {@link android.app.backup.RestoreSet RestoreSet} objects describing all of the available datasets that are candidates for restoring to the current device. If no applicable datasets exist, {@code result} will be {@code null}.

public voidrestoreStarting(int numPackages)
The restore operation has begun.

param
numPackages The total number of packages being processed in this restore operation.