Class MAMBackupAgentHelper

  • All Implemented Interfaces:
    com.microsoft.intune.mam.client.app.backup.HookedBackupAgentHelper

    
    public abstract class MAMBackupAgentHelper
    extends BackupAgentHelper implements HookedBackupAgentHelper
                        

    BackupAgentHelper that can be restricted.

    • Constructor Detail

      • MAMBackupAgentHelper

        MAMBackupAgentHelper()
    • Method Detail

      • onBackup

         final void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState)
      • onRestore

         final void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState)
      • onMAMCreate

         void onMAMCreate()

        Handle onCreate invocation.

      • onMAMBackup

         void onMAMBackup(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState)

        Handle onBackup invocation.

        Parameters:
        oldState - An open, read-only ParcelFileDescriptor pointing to the last backup state provided by the application.
        data - A structured wrapper around an open, read/write file descriptor pointing to the backup data destination.
        newState - An open, read/write ParcelFileDescriptor pointing to an empty file.
      • onMAMRestore

         void onMAMRestore(MAMBackupDataInput data, int appVersionCode, ParcelFileDescriptor newState)

        Handle onRestore invocation.

        Parameters:
        data - A structured wrapper around an open, read-only file descriptor pointing to a full snapshot of the application's data.
        appVersionCode - The value of the android:versionCode manifest attribute, from the application that backed up this particular data set.
        newState - An open, read/write ParcelFileDescriptor pointing to an empty file.
      • addMAMHelper

         void addMAMHelper(String keyPrefix, BackupHelper helper)

        Add a helper for a given data subset to the agent's configuration.

        Parameters:
        keyPrefix - A string used to disambiguate the various helpers within this agent
        helper - A backup/restore helper object to be invoked during backup and restore operations.