RLMSyncPermissionResults

@interface RLMSyncPermissionResults : NSObject <NSFastEnumeration>

A collection object representing the results of a permissions query.

This collection will automatically update its contents at the start of each runloop iteration, but the objects it vends are immutable.

Permission results objects are thread-confined, and should not be shared across threads.

Warning

Permission results must only be fetched on threads that have an active run loop. In most cases this will be the main thread.
  • Return all permissions matching the given predicate in the collection.

    Note

    Valid properties to filter on are path and userId, as well as the boolean properties mayRead, mayWrite, and mayManage.

    Declaration

    Objective-C

    - (nonnull RLMSyncPermissionResults *)objectsWithPredicate:
        (nonnull NSPredicate *)predicate;

    Swift

    func objects(with predicate: NSPredicate) -> RLMSyncPermissionResults
  • Return a sorted RLMSyncPermissionResults from the collection, sorted based on the given property.

    Declaration

    Objective-C

    - (nonnull RLMSyncPermissionResults *)
    sortedResultsUsingProperty:(RLMSyncPermissionResultsSortProperty)property
                     ascending:(BOOL)ascending;

    Swift

    func sortedResults(using property: RLMSyncPermissionResultsSortProperty, ascending: Bool) -> RLMSyncPermissionResults