DBTEAMPOLICIESSharedFolderJoinPolicy

Objective-C

@interface DBTEAMPOLICIESSharedFolderJoinPolicy
    : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMPOLICIESSharedFolderJoinPolicy : NSObject, DBSerializable, NSCopying

The SharedFolderJoinPolicy union.

Policy governing which shared folders a team member can join.

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

    Description of the “from_team_only” tag state: Team members can only join folders shared by teammates.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFromTeamOnly;

    Swift

    init(fromTeamOnly: ())

    Return Value

    An initialized instance.

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

    Description of the “from_anyone” tag state: Team members can join any shared folder, including those shared by users outside the team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFromAnyone;

    Swift

    init(fromAnyone: ())

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

    Declaration

    Objective-C

    - (BOOL)isFromTeamOnly;

    Swift

    func isFromTeamOnly() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isFromAnyone;

    Swift

    func isFromAnyone() -> Bool

    Return Value

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

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