RLMPropertyType
enum RLMPropertyType : int32_t {}
RLMPropertyType
is an enumeration describing all property types supported in Realm models.
For more information, see Realm Models.
-
Integers:
NSInteger
,int
,long
,Int
(Swift)Declaration
Objective‑C
RLMPropertyTypeInt = 0
Swift
case Int
-
Booleans:
BOOL
,bool
,Bool
(Swift)Declaration
Objective‑C
RLMPropertyTypeBool = 1
Swift
case Bool
-
Floating-point numbers:
float
,Float
(Swift)Declaration
Objective‑C
RLMPropertyTypeFloat = 9
Swift
case Float
-
Double-precision floating-point numbers:
double
,Double
(Swift)Declaration
Objective‑C
RLMPropertyTypeDouble = 10
Swift
case Double
-
Strings:
NSString
,String
(Swift)Declaration
Objective‑C
RLMPropertyTypeString = 2
Swift
case String
-
Binary data:
NSData
Declaration
Objective‑C
RLMPropertyTypeData = 4
Swift
case Data
-
Any object:
id
.This property type is no longer supported for new models. However, old models with any-typed properties are still supported for migration purposes.
Declaration
Objective‑C
RLMPropertyTypeAny = 6
Swift
case Any
-
Dates:
NSDate
Declaration
Objective‑C
RLMPropertyTypeDate = 8
Swift
case Date
-
Realm model objects. See Realm Models for more information.
Declaration
Objective‑C
RLMPropertyTypeObject = 12
Swift
case Object
-
Realm arrays. See Realm Models for more information.
Declaration
Objective‑C
RLMPropertyTypeArray = 13
Swift
case Array
-
Realm linking objects. See Realm Models for more information.
Declaration
Objective‑C
RLMPropertyTypeLinkingObjects = 14
Swift
case LinkingObjects