BackupActionResult.Success


public final class BackupActionResult.Success extends BackupActionResult


Indicates that the device payload executed and verified successfully.

Summary

Public constructors

Public methods

boolean
equals(Object other)
@NonNull Map<@NonNull String, @NonNull String>

Data that the action returned, such as values it read on the device.

int
@NonNull String

Inherited methods

From androidx.test.backup.host.BackupActionResult
final @NonNull Map<@NonNull String, @NonNull String>

Returns the data of a Success, or throws an IOException for a Failure, as BackupRestoreController.runBackupRestoreFlow does when one of its actions fails.

final boolean

Returns true if this is a Success result.

Public constructors

Success

Added in 1.0.0-alpha04
public Success(@NonNull Map<@NonNull String, @NonNull String> data)

Public methods

equals

public boolean equals(Object other)

getData

public @NonNull Map<@NonNull String, @NonNull String> getData()

Data that the action returned, such as values it read on the device. Empty if the action returned none or didn't run to completion. The data of a Failure leaves out the status and error of the action, which Failure.errorMessage reports. A result keeps a copy of the data that it's created with.

hashCode

public int hashCode()

toString

public @NonNull String toString()