Android 12 Developer Preview is here! Try it out, and give us your feedback!

ProvidedTypeConverter

@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE]) class ProvidedTypeConverter
androidx.room.ProvidedTypeConverter

Marks a class as a type converter that will be provided to Room at runtime. If Room uses the annotated type converter class, it will verify that it is provided in the builder and if not, will throw an exception. An instance of a class annotated with this annotation has to be provided to Room using Room.databaseBuilder.addTypeConverter(Object)

Summary

Public constructors

Marks a class as a type converter that will be provided to Room at runtime.

Public constructors

<init>

ProvidedTypeConverter()

Marks a class as a type converter that will be provided to Room at runtime. If Room uses the annotated type converter class, it will verify that it is provided in the builder and if not, will throw an exception. An instance of a class annotated with this annotation has to be provided to Room using Room.databaseBuilder.addTypeConverter(Object)