# IPCVersionMigrationEnvironment

abstract class IPCVersionMigrationEnvironment : ServerClientMigrationEnvironment

Defines migration based on version of AIDL interface.

## Constructors

IPCVersionMigrationEnvironment
Link copied to clipboard
constructor()

## Functions

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

Performs migration only for one specific version

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

Performs migration for all the versions except versions