RLMProperty

@interface RLMProperty : NSObject

This class models properties persisted to Realm in an RLMObjectSchema.

When using Realm, RLMProperty objects allow performing migrations and introspecting the database’s schema.

These properties map to columns in the core database.

  • Property name.

    Declaration

    Objective‑C

    @property (readonly, nonatomic) NSString *_Nonnull name;
  • Property type.

    Declaration

    Objective‑C

    @property (readonly, nonatomic) RLMPropertyType type;
  • Indicates if this property is indexed.

    See

    RLMObject

    Declaration

    Objective‑C

    @property (readonly, nonatomic) BOOL indexed;
  • Object class name - specify object types for RLMObject and RLMArray properties.

    Declaration

    Objective‑C

    @property (readonly, copy, nonatomic, nullable) NSString *objectClassName;
  • Whether this property is optional.

    Declaration

    Objective‑C

    @property (readonly, nonatomic) BOOL optional;