RestoreMPBackupUseCaseImpl

internal class RestoreMPBackupUseCaseImpl(selfUserId: UserId, backupRepository: BackupRepository, kaliumFileSystem: KaliumFileSystem, backupImporterProvider: MPBackupImporterProvider = MPBackupImporterProviderImpl(), dispatchers: KaliumDispatcher = KaliumDispatcherImpl, progressDispatcher: CoroutineDispatcher? = null) : RestoreMPBackupUseCase

Constructors

Link copied to clipboard
constructor(selfUserId: UserId, backupRepository: BackupRepository, kaliumFileSystem: KaliumFileSystem, backupImporterProvider: MPBackupImporterProvider = MPBackupImporterProviderImpl(), dispatchers: KaliumDispatcher = KaliumDispatcherImpl, progressDispatcher: CoroutineDispatcher? = null)

Functions

Link copied to clipboard
open suspend operator override fun invoke(backupFilePath: Path, password: String?, onProgress: (Float) -> Unit): RestoreBackupResult

Restores a valid previously created backup file in multiplatform format into the current database, respecting the current data if there is any overlap.