RLMSyncAccessLevel
enum RLMSyncAccessLevel : NSUInteger {}
Access levels which can be granted to Realm Mobile Platform users for specific synchronized Realms, using the permissions APIs.
Note that each access level guarantees all allowed actions provided by less permissive access levels. Specifically, users with write access to a Realm can always read from that Realm, and users with administrative access can always read or write from the Realm.
-
No access whatsoever.
Declaration
Objective-C
RLMSyncAccessLevelNone = 0
-
User can only read the contents of the Realm.
Warning
Users who have read-only access to a Realm should open the Realm using+[RLMRealm asyncOpenWithConfiguration:callbackQueue:callback:]
. Attempting to directly open the Realm is an error; in this case the Realm must be deleted and re-opened.Declaration
Objective-C
RLMSyncAccessLevelRead = 1
-
User can read and write the contents of the Realm.
Declaration
Objective-C
RLMSyncAccessLevelWrite = 2
-
User can read, write, and administer the Realm, including granting permissions to other users.
Declaration
Objective-C
RLMSyncAccessLevelAdmin = 3