BuiltInTypeConverters.State

enum BuiltInTypeConverters.State : Enum


Control flags for built in converters.

Summary

Enum Values

DISABLED

Room cannot use the built in converter.

ENABLED

Room can use the built in converter.

INHERITED

The value is inherited from the higher scope.

Public functions

BuiltInTypeConverters.State
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<BuiltInTypeConverters.State>

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

DISABLED

val BuiltInTypeConverters.State.DISABLEDBuiltInTypeConverters.State

Room cannot use the built in converter.

ENABLED

val BuiltInTypeConverters.State.ENABLEDBuiltInTypeConverters.State

Room can use the built in converter.

INHERITED

val BuiltInTypeConverters.State.INHERITEDBuiltInTypeConverters.State

The value is inherited from the higher scope. See TypeConverters documentation to learn more about TypeConverter scoping. If this value is never set, it defaults to ENABLED.

Public functions

valueOf

Added in 2.4.0
fun valueOf(value: String): BuiltInTypeConverters.State

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

Added in 2.4.0
fun values(): Array<BuiltInTypeConverters.State>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.