RLMPropertyType
enum RLMPropertyType {}
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 = 0
-
Booleans:
BOOL
,bool
,Bool
(Swift)Declaration
Objective-C
RLMPropertyTypeBool = 1
Swift
case bool = 1
-
Floating-point numbers:
float
,Float
(Swift)Declaration
Objective-C
RLMPropertyTypeFloat = 5
Swift
case float = 5
-
Double-precision floating-point numbers:
double
,Double
(Swift)Declaration
Objective-C
RLMPropertyTypeDouble = 6
Swift
case double = 6
-
Strings:
NSString
,String
(Swift)Declaration
Objective-C
RLMPropertyTypeString = 2
Swift
case string = 2
-
Binary data:
NSData
Declaration
Objective-C
RLMPropertyTypeData = 3
Swift
case data = 3
-
Any object:
id
.This property type is no longer supported for new models. However, old files with any-typed properties are still supported for migration purposes.
Declaration
Objective-C
RLMPropertyTypeAny = 9
Swift
case any = 9
-
Dates:
NSDate
Declaration
Objective-C
RLMPropertyTypeDate = 4
Swift
case date = 4
-
Realm model objects. See Realm Models for more information.
Declaration
Objective-C
RLMPropertyTypeObject = 7
Swift
case object = 7
-
Realm linking objects. See Realm Models for more information.
Declaration
Objective-C
RLMPropertyTypeLinkingObjects = 8
Swift
case linkingObjects = 8