Google is committed to advancing racial equity for Black communities. See how.

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)