DBPAPERFolderSharingPolicyType

Objective-C

@interface DBPAPERFolderSharingPolicyType : NSObject <DBSerializable, NSCopying>

Swift

class DBPAPERFolderSharingPolicyType : NSObject, DBSerializable, NSCopying

The FolderSharingPolicyType union.

The sharing policy of a Paper folder. The sharing policy of subfolders is inherited from the root folder.

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

    Description of the “team” tag state: Everyone in your team and anyone directly invited can access this folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTeam;

    Swift

    init(team: ())

    Return Value

    An initialized instance.

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

    Description of the “invite_only” tag state: Only people directly invited can access this folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithInviteOnly;

    Swift

    init(inviteOnly: ())

    Return Value

    An initialized instance.

Tag state methods

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

    Declaration

    Objective-C

    - (BOOL)isTeam;

    Swift

    func isTeam() -> Bool

    Return Value

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

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