RLMRealmConfiguration Class Reference
Inherits from | NSObject |
Conforms to | NSCopying |
Declared in | RLMRealmConfiguration.h |
Overview
An RLMRealmConfiguration
is used to describe the different options used to
create an RLMRealm
instance.
Tasks
-
+ defaultConfiguration
-
+ setDefaultConfiguration:
-
path
property -
inMemoryIdentifier
property -
encryptionKey
property -
readOnly
property -
schemaVersion
property -
migrationBlock
property -
objectClasses
property
Properties
encryptionKey
64-byte key to use to encrypt the data.
@property (nonatomic, copy, nullable) NSData *encryptionKey
Declared In
RLMRealmConfiguration.h
inMemoryIdentifier
A string used to identify a particular in-memory Realm. Mutually exclusive with path
.
@property (nonatomic, copy, nullable) NSString *inMemoryIdentifier
Declared In
RLMRealmConfiguration.h
migrationBlock
The block which migrates the Realm to the current version.
@property (nonatomic, copy, nullable) RLMMigrationBlock migrationBlock
Declared In
RLMRealmConfiguration.h
objectClasses
The classes persisted in the Realm.
@property (nonatomic, copy, nullable) NSArray *objectClasses
Declared In
RLMRealmConfiguration.h
path
The path to the realm file. Mutually exclusive with inMemoryIdentifier
.
@property (nonatomic, copy, nullable) NSString *path
Declared In
RLMRealmConfiguration.h
Class Methods
defaultConfiguration
Returns the default configuration used to create Realms when no other
configuration is explicitly specified (i.e. [RLMRealm defaultRealm]
).
+ (instancetype)defaultConfiguration
Return Value
The default Realm configuration.
Declared In
RLMRealmConfiguration.h