PopulateStorageAction


public final class PopulateStorageAction implements 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 methods

@NonNull BackupDeviceActionResult

Runs the action payload.

int

Lifecycle phase when this action runs.

Public constructors

PopulateStorageAction

Added in 1.0.0-alpha01
public PopulateStorageAction()

Public methods

execute

public @NonNull BackupDeviceActionResult execute(@NonNull Context context, @NonNull BackupDeviceActionArgs args)

Runs the action payload.

Parameters
@NonNull Context context

application context on the target device

@NonNull BackupDeviceActionArgs args

input arguments passed from the host orchestrator

Returns
@NonNull BackupDeviceActionResult

result returned to the host

getPhase

public int getPhase()

Lifecycle phase when this action runs.