ProvidedAutoMigrationSpec


@Target(allowedTargets = [AnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.BINARY)
public annotation ProvidedAutoMigrationSpec


Marks a androidx.room3.migration.AutoMigrationSpec class that will be provided to Room at runtime.

An instance of a class annotated with this annotation has to be provided to the Room database using androidx.room3.RoomDatabase.Builder.addAutoMigrationSpec. Room will verify that the spec is provided in the builder and if not, it will throw an exception.

Summary

Public constructors

Public constructors

ProvidedAutoMigrationSpec

public ProvidedAutoMigrationSpec()