BackupTransportMode


class BackupTransportMode


Represents the platform-transport emulation mode utilized during the backup and restore phases.

This class is designed to be non-exhaustive to allow future transport types to be introduced in a binary-compatible manner. Standard pattern-matching when expressions on this type must use an explicit else fallback branch.

Summary

Public companion properties

BackupTransportMode

Simulates a cloud-based backup utilizing secure client-side end-to-end encryption.

BackupTransportMode

Simulates standard cloud-based backup without client-side encryption bounds.

BackupTransportMode

Simulates a physical peer-to-device direct migration (e.g. transfer via USB/Wi-Fi Direct).

BackupTransportMode

Performs a local, low-latency offline filesystem transport backup.

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public companion properties

CLOUD_ENCRYPTED

val CLOUD_ENCRYPTED: BackupTransportMode

Simulates a cloud-based backup utilizing secure client-side end-to-end encryption.

CLOUD_UNENCRYPTED

val CLOUD_UNENCRYPTED: BackupTransportMode

Simulates standard cloud-based backup without client-side encryption bounds.

DEVICE_TO_DEVICE

val DEVICE_TO_DEVICE: BackupTransportMode

Simulates a physical peer-to-device direct migration (e.g. transfer via USB/Wi-Fi Direct).

LOCAL

val LOCAL: BackupTransportMode

Performs a local, low-latency offline filesystem transport backup.

The backup data stays in the local backup transport of the device. The archive that BackupRestoreController.performBackup returns only marks the backup, so only the same device can restore it. The archive names the device by its ADB serial number, which can change between runs, for example when an emulator starts on another port.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String