MPBackupImporter

Entity able to parse backed-up data and returns digestible data in BackupData format.

Samples

samples.backup.BackupSample.commonImport
actual class MPBackupImporter

Entity able to parse backed-up data and returns digestible data in BackupData format.

Samples

samples.backup.BackupSamplesJs.peekBackupsamples.backup.BackupSamples.commonImport

Entity able to parse backed-up data and returns digestible data in BackupData format.

Samples

samples.backup.BackupSamples.commonImportsamples.backup.BackupSamplesNonJS.peekBackup

Constructors

Link copied to clipboard
constructor()
constructor(pathToWorkDirectory: String, backupFileUnzipper: BackupFileUnzipper, fileSystem: <Error class: unknown class>)
constructor(pathToWorkDirectory: String, backupFileUnzipper: BackupFileUnzipper)

Functions

Link copied to clipboard
internal expect open override fun getUnencryptedArchiveSink(): <Error class: unknown class>

Provides a sink to store the unencrypted data. Be the archive encrypted or not, the data will be moved to this sink until unzipAllEntries is used.

actual open fun getUnencryptedArchiveSink(): <Error class: unknown class>
internal actual open override fun getUnencryptedArchiveSink(): <Error class: unknown class>

Provides a sink to store the unencrypted data. Be the archive encrypted or not, the data will be moved to this sink until unzipAllEntries is used.

Link copied to clipboard
internal suspend fun importBackup(source: <Error class: unknown class>, passphrase: String?): BackupImportResult

Decrypt (if needed) and unzip the backup artifact. The resulting BackupImportResult.Success contains a BackupImportPager, that can be used to consume pages of backed up application data, like messages, users and conversations.

internal suspend fun importBackup(source: <Error class: unknown class>, passphrase: String?): BackupImportResult

Decrypt (if needed) and unzip the backup artifact. The resulting BackupImportResult.Success contains a BackupImportPager, that can be used to consume pages of backed up application data, like messages, users and conversations.

Link copied to clipboard
suspend fun importFromFile(multiplatformBackupFilePath: String, passphrase: String?): BackupImportResult

Imports a backup from the specified root path.

Link copied to clipboard
fun importFromFileData(data: <Error class: unknown class>, passphrase: String?): <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
internal fun peekBackup(source: <Error class: unknown class>): BackupPeekResult

Peeks into a backup artifact, returning information about it.

internal fun peekBackup(source: <Error class: unknown class>): BackupPeekResult

Peeks into a backup artifact, returning information about it.

Link copied to clipboard
suspend fun peekBackupFile(pathToBackupFile: String): BackupPeekResult

Peeks into the specified backup file and retrieves metadata about it.

Link copied to clipboard
fun peekFileData(data: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
internal expect open suspend override fun unzipAllEntries(): BackupPageStorage

Unzips all entries in the zip archive stored in the sink returned by getUnencryptedArchiveSink.

actual open suspend fun unzipAllEntries(): BackupPageStorage
internal actual open suspend override fun unzipAllEntries(): BackupPageStorage

Unzips all entries in the zip archive stored in the sink returned by getUnencryptedArchiveSink.