DBSHARINGAccessLevel

Objective-C

@interface DBSHARINGAccessLevel : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGAccessLevel : NSObject, DBSerializable, NSCopying

The AccessLevel union.

Defines the access levels for collaborators.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

Constructors

  • Initializes union class with tag state of “owner”.

    Description of the “owner” tag state: The collaborator is the owner of the shared folder. Owners can view and edit the shared folder as well as set the folder’s policies using updateFolderPolicy.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOwner;

    Swift

    init(owner: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “editor”.

    Description of the “editor” tag state: The collaborator can both view and edit the shared folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithEditor;

    Swift

    init(editor: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “viewer”.

    Description of the “viewer” tag state: The collaborator can only view the shared folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithViewer;

    Swift

    init(viewer: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “viewer_no_comment”.

    Description of the “viewer_no_comment” tag state: The collaborator can only view the shared folder and does not have any access to comments.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithViewerNoComment;

    Swift

    init(viewerNoComment: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “other”.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOther;

    Swift

    init(other: ())

    Return Value

    An initialized instance.

Tag state methods

  • Retrieves whether the union’s current tag state has value “owner”.

    Declaration

    Objective-C

    - (BOOL)isOwner;

    Swift

    func isOwner() -> Bool

    Return Value

    Whether the union’s current tag state has value “owner”.

  • Retrieves whether the union’s current tag state has value “editor”.

    Declaration

    Objective-C

    - (BOOL)isEditor;

    Swift

    func isEditor() -> Bool

    Return Value

    Whether the union’s current tag state has value “editor”.

  • Retrieves whether the union’s current tag state has value “viewer”.

    Declaration

    Objective-C

    - (BOOL)isViewer;

    Swift

    func isViewer() -> Bool

    Return Value

    Whether the union’s current tag state has value “viewer”.

  • Retrieves whether the union’s current tag state has value “viewer_no_comment”.

    Declaration

    Objective-C

    - (BOOL)isViewerNoComment;

    Swift

    func isViewerNoComment() -> Bool

    Return Value

    Whether the union’s current tag state has value “viewer_no_comment”.

  • Retrieves whether the union’s current tag state has value “other”.

    Declaration

    Objective-C

    - (BOOL)isOther;

    Swift

    func isOther() -> Bool

    Return Value

    Whether the union’s current tag state has value “other”.

  • Retrieves string value of union’s current tag state.

    Declaration

    Objective-C

    - (nonnull NSString *)tagName;

    Swift

    func tagName() -> String

    Return Value

    A human-readable string representing the union’s current tag state.