IPCVersionMigrationEnvironment

Defines migration based on version of AIDL interface.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun <ReturnType> forExactVersion(version: String, migration: () -> ReturnType)

Performs migration only for one specific version

Link copied to clipboard
fun <ReturnType> forVersions(vararg versions: String, migration: (String) -> ReturnType): ReturnType?
Link copied to clipboard
abstract fun getVersion(): String?
Link copied to clipboard
fun <ReturnType> notForVersions(vararg versions: String, migration: (String) -> ReturnType): ReturnType?

Performs migration for all the versions except versions