MultiPlatformBackupScope

class MultiPlatformBackupScope(selfUserId: UserId, kaliumFileSystem: KaliumFileSystem, backupRepository: BackupRepository, userRepository: UserRepository)

Constructors

Link copied to clipboard
internal constructor(selfUserId: UserId, kaliumFileSystem: KaliumFileSystem, backupRepository: BackupRepository, userRepository: UserRepository)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun restore(progressDispatcher: CoroutineDispatcher): RestoreMPBackupUseCase

Creates a restore use case that dispatches progress callbacks on progressDispatcher. This allows consumers without a UI main dispatcher to restore history. The existing restore property continues to dispatch progress on the main dispatcher.