DBPAPERSharingPublicPolicyType

Objective-C

@interface DBPAPERSharingPublicPolicyType : NSObject <DBSerializable, NSCopying>

Swift

class DBPAPERSharingPublicPolicyType : NSObject, DBSerializable, NSCopying

The SharingPublicPolicyType union.

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

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

    Description of the “disabled” tag state: Value used to indicate that doc sharing is enabled only within team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDisabled;

    Swift

    init(disabled: ())

    Return Value

    An initialized instance.

Tag state methods

  • 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 whether the union’s current tag state has value “disabled”.

    Declaration

    Objective-C

    - (BOOL)isDisabled;

    Swift

    func isDisabled() -> Bool

    Return Value

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

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