RLMPropertyType
enum RLMPropertyType : int32_t {}
Property types supported in Realm models.
See Realm Models
-
Integer type: NSInteger, int, long, Int (Swift)
Declaration
Objective‑C
RLMPropertyTypeInt = 0
Swift
case Int
-
Boolean type: BOOL, bool, Bool (Swift)
Declaration
Objective‑C
RLMPropertyTypeBool = 1
Swift
case Bool
-
Float type: float, Float (Swift)
Declaration
Objective‑C
RLMPropertyTypeFloat = 9
Swift
case Float
-
Double type: double, Double (Swift)
Declaration
Objective‑C
RLMPropertyTypeDouble = 10
Swift
case Double
-
String type: NSString, String (Swift)
Declaration
Objective‑C
RLMPropertyTypeString = 2
Swift
case String
-
Data type: NSData
Declaration
Objective‑C
RLMPropertyTypeData = 4
Swift
case Data
-
Any type: id. No longer supported in models, but can be migrated from
Declaration
Objective‑C
RLMPropertyTypeAny = 6
Swift
case Any
-
Date type: NSDate
Declaration
Objective‑C
RLMPropertyTypeDate = 8
Swift
case Date
-
Object type. See Realm Models
Declaration
Objective‑C
RLMPropertyTypeObject = 12
Swift
case Object
-
Array type. See Realm Models
Declaration
Objective‑C
RLMPropertyTypeArray = 13
Swift
case Array
-
Linking objects. See Realm Models
Declaration
Objective‑C
RLMPropertyTypeLinkingObjects = 14
Swift
case LinkingObjects