BackupUtils

Types

Link copied to clipboard
data class BackupFile(val datastore: BackupUtils.BackupVars, val settings: BackupUtils.BackupVars)
Link copied to clipboard
data class BackupVars(val bool: Map<String, Boolean>?, val int: Map<String, Int>?, val string: Map<String, String>?, val float: Map<String, Float>?, val long: Map<String, Long>?, val stringSet: Map<String, Set<String>?>?)

Functions

Link copied to clipboard
fun backup(context: Context?): Job
Link copied to clipboard
fun getCurrentBackupDir(context: Context): Pair<<Error class: unknown class>?, String?>
Link copied to clipboard
fun getDefaultBackupDir(context: Context): <Error class: unknown class>?

Copy of VideoDownloadManager.basePathToFile, VideoDownloadManager.getDefaultDir and VideoDownloadManager.getBasePath modded for backup specific paths

Link copied to clipboard
fun restore(context: Context?, backupFile: BackupUtils.BackupFile, restoreSettings: Boolean, restoreDataStore: Boolean)
Link copied to clipboard
fun <Error class: unknown class>.restorePrompt()
Link copied to clipboard
fun <Error class: unknown class>.setUpBackup()