BackupManager

interface BackupManager

Properties

Link copied to clipboard
abstract val frequency: StateFlow<BackupFrequency>

Returns the current value of the backup startup frequency.

Link copied to clipboard
abstract val state: StateFlow<BackupState>

Returns the state of the contacts backup process.

Functions

Link copied to clipboard
abstract fun backup(): Job

Starts a backup of contacts.

Link copied to clipboard
abstract suspend fun getLastBackupDate(): Long

Gets the current date of the last backup of contacts.

Link copied to clipboard
abstract fun resetBackupState()

Reset backup state to NotActive state. Available when backup is Succeed or Failed.

Link copied to clipboard
abstract fun setFrequency(frequency: BackupFrequency)

Sets the value of the backup startup frequency. When setting the value, it can start a backup.