RLMClassPermission

@interface RLMClassPermission : RLMObject

An object which describes class-wide permissions.

An instance of this object is automatically created in the Realm for class in your schema, and should not be created manually. Call +[RLMClassPermission objectInRealm:forClassNamed:] or +[RLMClassPermission objectInRealm:forClass:] to obtain the existing instance, or query RLMClassPermission as normal.

  • The name of the class which these permissions apply to.

    Declaration

    Objective-C

    @property (nonatomic) NSString *_Nonnull name;

    Swift

    var name: String { get set }
  • The permissions for this class.

    Declaration

    Objective-C

    @property (nonatomic) RLMArray<RLMPermission *><RLMPermission> *_Nonnull permissions;
  • Retrieve the object for the named RLMObject subclass. This will return nil for non-partial-sync Realms.

    Declaration

    Objective-C

    + (nullable instancetype)objectInRealm:(nonnull RLMRealm *)realm
                             forClassNamed:(nonnull NSString *)className;

    Swift

    class func object(in realm: RLMRealm, forClassNamed className: String) -> Self?
  • Retrieve the object for the given RLMObject subclass. This will return nil for non-partial-sync Realms.

    Declaration

    Objective-C

    + (nullable instancetype)objectInRealm:(nonnull RLMRealm *)realm
                                  forClass:(nonnull Class)cls;

    Swift

    class func object(in realm: RLMRealm, for cls: AnyClass) -> Self?