Partager via


Android.App.Backup Namespace

Contains the backup and restore functionality available to applications.

Classes

BackupAgent

Provides the central interface between an application and Android's data backup infrastructure.

BackupAgentHelper

A convenient BackupAgent wrapper class that automatically manages heterogeneous data sets within the backup data, each identified by a unique key prefix.

BackupDataInput

Provides the structured interface through which a BackupAgent reads information from the backup data set, via its BackupAgent#onRestore(BackupDataInput, int, android.os.ParcelFileDescriptor) onRestore() method.

BackupDataInputStream

Provides an java.io.InputStream-like interface for accessing an entity's data during a restore operation.

BackupDataOutput

Provides the structured interface through which a BackupAgent commits information to the backup data set, via its BackupAgent#onBackup(ParcelFileDescriptor,BackupDataOutput,ParcelFileDescriptor) onBackup() method.

BackupManager

The interface through which an application interacts with the Android backup service to request backup and restore operations.

FileBackupHelper

A helper class that can be used in conjunction with android.app.backup.BackupAgentHelper to manage the backup of a set of files.

FileBackupHelperBase

Base class for the android.app.backup.FileBackupHelper implementation.

FullBackupDataOutput

Provides the interface through which a BackupAgent writes entire files to a full backup data set, via its BackupAgent#onFullBackup(FullBackupDataOutput) method.

IBackupHelperExtensions
RestoreObserver

Callback class for receiving progress reports during a restore operation.

SharedPreferencesBackupHelper

A helper class that can be used in conjunction with android.app.backup.BackupAgentHelper to manage the backup of android.content.SharedPreferences.

Interfaces

IBackupHelper

Defines the calling interface that BackupAgentHelper uses when dispatching backup and restore operations to the installed helpers.

Enums

BackupFileType

Enumerates values returned by several types and taken as a parameter of the F:Android.App.Backup.BackupAgent.OnRestoreFile member.

BackupTransportFlags