DBPAPERSharingTeamPolicyType

@interface DBPAPERSharingTeamPolicyType : NSObject <DBSerializable, NSCopying>

The SharingTeamPolicyType union.

The sharing policy type of the Paper doc.

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

  • Initializes union class with tag state of people_with_link_can_edit.

    Description of the people_with_link_can_edit tag state: Users who have a link to this doc can edit it.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPeopleWithLinkCanEdit;

    Swift

    init(peopleWithLinkCanEdit: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of people_with_link_can_view_and_comment.

    Description of the people_with_link_can_view_and_comment tag state: Users who have a link to this doc can view and comment on it.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPeopleWithLinkCanViewAndComment;

    Swift

    init(peopleWithLinkCanViewAndComment: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of invite_only.

    Description of the invite_only tag state: Users must be explicitly invited to this doc.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithInviteOnly;

    Swift

    init(inviteOnly: ())

    Return Value

    An initialized instance.

  • Retrieves whether the union’s current tag state has value people_with_link_can_edit.

    Declaration

    Objective-C

    - (BOOL)isPeopleWithLinkCanEdit;

    Swift

    func isPeopleWithLinkCanEdit() -> Bool

    Return Value

    Whether the union’s current tag state has value people_with_link_can_edit.

  • Retrieves whether the union’s current tag state has value people_with_link_can_view_and_comment.

    Declaration

    Objective-C

    - (BOOL)isPeopleWithLinkCanViewAndComment;

    Swift

    func isPeopleWithLinkCanViewAndComment() -> Bool

    Return Value

    Whether the union’s current tag state has value people_with_link_can_view_and_comment.

  • Retrieves whether the union’s current tag state has value invite_only.

    Declaration

    Objective-C

    - (BOOL)isInviteOnly;

    Swift

    func isInviteOnly() -> Bool

    Return Value

    Whether the union’s current tag state has value invite_only.

  • 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.