BuiltInTypeConverters

public abstract @interface BuiltInTypeConverters
implements Annotation

androidx.room.BuiltInTypeConverters


Flags to turn on/off extra type converters provided by Room. For certain commonly used types (enums, UUID), Room provides automatic type converters. By default, these type converters are enabled but have lower priority than user provided type converters. You can set these flags in the TypeConverters annotation to turn them off / on. It might be useful if you want to have more strict control over how these types are saved into the database.

Summary

Nested classes

enum BuiltInTypeConverters.State

Control flags for built in converters. 

Public methods

BuiltInTypeConverters.State enums()

Controls whether Room can generate a TypeConverter for enum types and use their name() in the database.

BuiltInTypeConverters.State uuid()

Controls whether Room can generate a TypeConverter for UUID and use its byte[] representation while saving it into database.

Inherited methods

Public methods

enums

public BuiltInTypeConverters.State enums ()

Controls whether Room can generate a TypeConverter for enum types and use their name() in the database. By default, it is set to BuiltInTypeConverters.State.INHERITED (on by default unless set to another value in a higher scope).

Returns
BuiltInTypeConverters.State

uuid

public BuiltInTypeConverters.State uuid ()

Controls whether Room can generate a TypeConverter for UUID and use its byte[] representation while saving it into database. By default, it is set to BuiltInTypeConverters.State.INHERITED (on by default unless set to another value in a higher scope).

Returns
BuiltInTypeConverters.State