ProvidedAutoMigrationSpec


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


Marks a class as an auto migration spec that will be provided to Room at runtime.

An instance of a class annotated with this annotation has to be provided to Room using Room.databaseBuilder.addAutoMigrationSpec(AutoMigrationSpec). Room will verify that the spec is provided in the builder configuration and if not, an IllegalArgumentException will be thrown.

Summary

Public constructors

Public constructors

ProvidedAutoMigrationSpec

public ProvidedAutoMigrationSpec()