MigrationManager

class MigrationManager(dataStore: DataStore<Preferences>, currentVersion: Int)

Constructors

Link copied to clipboard
constructor(dataStore: DataStore<Preferences>, currentVersion: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addKeyDeletion(fromVersion: Int, toVersion: Int, vararg keys: String): MigrationManager
Link copied to clipboard
fun addKeyRename(fromVersion: Int, toVersion: Int, oldKey: String, newKey: String): MigrationManager
Link copied to clipboard
Link copied to clipboard
suspend fun getStoredVersion(): Int
Link copied to clipboard
suspend fun migrate(): MigrationResult