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.

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

readOnly

Whether the Realm is read-only (must be YES for read-only files).

@property (nonatomic) BOOL readOnly

Declared In

RLMRealmConfiguration.h

schemaVersion

The current schema version.

@property (nonatomic) uint64_t schemaVersion

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

setDefaultConfiguration:

Sets the default configuration to the given RLMRealmConfiguration.

+ (void)setDefaultConfiguration:(RLMRealmConfiguration *)configuration

Parameters

configuration

The new default Realm configuration.

Declared In

RLMRealmConfiguration.h