Class MAMSharedPreferencesBackupHelper
-
- All Implemented Interfaces:
-
android.app.backup.BackupHelper,com.microsoft.intune.mam.client.app.backup.HookedBackupHelper,com.microsoft.intune.mam.client.app.backup.HookedSharedPreferencesBackupHelper
public final class MAMSharedPreferencesBackupHelper extends SharedPreferencesBackupHelper implements HookedSharedPreferencesBackupHelperMAM version of SharedPreferencesBackupHelper.
-
-
Constructor Summary
Constructors Constructor Description MAMSharedPreferencesBackupHelper(Context context, Array<String> prefGroups)Creates a MAMSharedPreferencesBackupHelper to assist in backing up files.
-
Method Summary
Modifier and Type Method Description Array<String>getFileNames()Get the file names associated with this backup helper. ContextgetContext()Get the context this helper was created with. booleanisValid()Determines whether this backup helper is in a good state and should be backed up. voidperformBackup(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState)FilegetRootDirectory()Returns the directory where the files that this helper backs up exist. -
-
Method Detail
-
getFileNames
Array<String> getFileNames()
Get the file names associated with this backup helper.
- Returns:
the file names.
-
getContext
Context getContext()
Get the context this helper was created with.
- Returns:
the context.
-
isValid
boolean isValid()
Determines whether this backup helper is in a good state and should be backed up.
- Returns:
true if it is in a good state, false otherwise.
-
performBackup
void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState)
-
getRootDirectory
File getRootDirectory()
Returns the directory where the files that this helper backs up exist.
- Returns:
the directory where the files that this helper backs up exist.
-
-
-
-