DBTEAMPOLICIESSharedLinkCreatePolicy

Objective-C

@interface DBTEAMPOLICIESSharedLinkCreatePolicy
    : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMPOLICIESSharedLinkCreatePolicy : NSObject, DBSerializable, NSCopying

The SharedLinkCreatePolicy union.

Policy governing the visibility of shared links. This policy can apply to newly created shared links, or all shared links.

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

    Description of the “default_public” tag state: By default, anyone can access newly created shared links. No login will be required to access the shared links unless overridden.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDefaultPublic;

    Swift

    init(defaultPublic: ())

    Return Value

    An initialized instance.

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

    Description of the “default_team_only” tag state: By default, only members of the same team can access newly created shared links. Login will be required to access the shared links unless overridden.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDefaultTeamOnly;

    Swift

    init(defaultTeamOnly: ())

    Return Value

    An initialized instance.

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

    Description of the “team_only” tag state: Only members of the same team can access all shared links. Login will be required to access all shared links.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTeamOnly;

    Swift

    init(teamOnly: ())

    Return Value

    An initialized instance.

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

    Description of the “default_no_one” tag state: Only people invited can access newly created links. Login will be required to access the shared links unless overridden.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDefaultNoOne;

    Swift

    init(defaultNoOne: ())

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

    Declaration

    Objective-C

    - (BOOL)isDefaultPublic;

    Swift

    func isDefaultPublic() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isDefaultTeamOnly;

    Swift

    func isDefaultTeamOnly() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isTeamOnly;

    Swift

    func isTeamOnly() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isDefaultNoOne;

    Swift

    func isDefaultNoOne() -> Bool

    Return Value

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

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