IRestoreSessionpublic interface IRestoreSession implements android.os.IInterfaceBinder interface used by clients who wish to manage a restore operation. Every
method in this interface requires the android.permission.BACKUP permission.
{@hide} |
Methods Summary |
---|
public void | endRestoreSession()End this restore session. After this method is called, the IRestoreSession binder
is no longer valid.
Note: The caller must invoke this method to end the restore session,
even if {@link getAvailableRestoreSets} or {@link performRestore} failed.
| public int | getAvailableRestoreSets(android.app.backup.IRestoreObserver observer)Ask the current transport what the available restore sets are.
| public int | restoreAll(long token, android.app.backup.IRestoreObserver observer)Restore the given set onto the device, replacing the current data of any app
contained in the restore set with the data previously backed up.
Callers must hold the android.permission.BACKUP permission to use this method.
| public int | restorePackage(java.lang.String packageName, android.app.backup.IRestoreObserver observer)Restore a single application from backup. The data will be restored from the
current backup dataset if the given package has stored data there, or from
the dataset used during the last full device setup operation if the current
backup dataset has no matching data. If no backup data exists for this package
in either source, a nonzero value will be returned.
| public int | restoreSome(long token, android.app.backup.IRestoreObserver observer, java.lang.String[] packages)Restore select packages from the given set onto the device, replacing the
current data of any app contained in the set with the data previously
backed up.
Callers must hold the android.permission.BACKUP permission to use this method.
|
|