PopulateStorageAction


class PopulateStorageAction : BackupDeviceAction


Populates test data inside the application sandbox before a backup.

Parses the incoming BackupDeviceAction.KEY_STORAGE_TYPE argument and seeds the specified data into android.content.SharedPreferences, SQLite database, or raw file storage.

Summary

Public constructors

Public functions

open BackupDeviceActionResult

Runs the action payload.

Public properties

open Int

Lifecycle phase when this action runs.

Public constructors

PopulateStorageAction

Added in 1.0.0-alpha01
PopulateStorageAction()

Public functions

execute

open fun execute(context: Context, args: BackupDeviceActionArgs): BackupDeviceActionResult

Runs the action payload.

Parameters
context: Context

application context on the target device

args: BackupDeviceActionArgs

input arguments passed from the host orchestrator

Returns
BackupDeviceActionResult

result returned to the host

Public properties

phase

open val phaseInt

Lifecycle phase when this action runs.