RLMSyncPermissionOffer

@interface RLMSyncPermissionOffer : NSObject

A pending offer to grant permissions on a Realm path.

This type is immutable and can be safely read from any thread.

See

-[RLMSyncUser retrievePermissionOffersWithCallback:]
  • The Realm Object Server path to the Realm to which this permission applies (e.g. “/path/to/realm”).

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull realmPath;

    Swift

    var realmPath: String { get }
  • The token which can be used to aceept or revoke this offer.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull token;

    Swift

    var token: String { get }
  • The date when this offer will expire, or nil for a non-expiring offer.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *expiresAt;

    Swift

    var expiresAt: Date? { get }
  • The date when this offer was created.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *createdAt;

    Swift

    var createdAt: Date? { get }
  • The access level which this offer grants.

    Declaration

    Objective-C

    @property (nonatomic, readonly) RLMSyncAccessLevel accessLevel;

    Swift

    var accessLevel: RLMSyncAccessLevel { get }