RealmStorageType

enum RealmStorageType : Enum<RealmStorageType>

The various types that are used when storing the property values in the realm.

Parameters

kClass

the default Kotlin class used to represent values of the storage type.

Entries

ANY
Link copied to clipboard
ANY(RealmAny::class)

Storage type for properties of type RealmAny.

UUID
Link copied to clipboard
UUID(RealmUUID::class)

Storage type for properties of type RealmUUID.

OBJECT_ID
Link copied to clipboard
OBJECT_ID(BsonObjectId::class)

Storage type for properties of type BsonObjectId.

TIMESTAMP
Link copied to clipboard
TIMESTAMP(RealmInstant::class)

Storage type for properties of type RealmInstant.

DECIMAL128
Link copied to clipboard
DECIMAL128(Decimal128::class)

Storage type for properties of type Decimal128.

DOUBLE
Link copied to clipboard
DOUBLE(Double::class)

Storage type for properties of type Double.

FLOAT
Link copied to clipboard
FLOAT(Float::class)

Storage type for properties of type Float.

OBJECT
Link copied to clipboard
OBJECT(BaseRealmObject::class)

Storage type for properties of type RealmObject or EmbeddedRealmObject.

BINARY
Link copied to clipboard
BINARY(ByteArray::class)

Storage type for properties of type ByteArray.

STRING
Link copied to clipboard
STRING(String::class)

Storage type for properties of type String.

INT
Link copied to clipboard
INT(Long::class)

Storage type for properties of type Byte, Char, Short, Int and Long.

BOOL
Link copied to clipboard
BOOL(Boolean::class)

Storage type for properties of type Boolean.

Properties

kClass
Link copied to clipboard
val kClass: KClass<*>
name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int