DBSHARINGVisibilityPolicyDisallowedReason

Objective-C

@interface DBSHARINGVisibilityPolicyDisallowedReason
    : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGVisibilityPolicyDisallowedReason : NSObject, DBSerializable, NSCopying

The VisibilityPolicyDisallowedReason 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 “delete_and_recreate”.

    Description of the “delete_and_recreate” tag state: The user needs to delete and recreate the link to change the visibility policy.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDeleteAndRecreate;

    Swift

    init(deleteAndRecreate: ())

    Return Value

    An initialized instance.

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

    Description of the “restricted_by_shared_folder” tag state: The parent shared folder restricts sharing of links outside the shared folder. To change the visibility policy, remove the restriction from the parent shared folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRestrictedBySharedFolder;

    Swift

    init(restrictedBySharedFolder: ())

    Return Value

    An initialized instance.

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

    Description of the “restricted_by_team” tag state: The team policy prevents links being shared outside the team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRestrictedByTeam;

    Swift

    init(restrictedByTeam: ())

    Return Value

    An initialized instance.

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

    Description of the “user_not_on_team” tag state: The user needs to be on a team to set this policy.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserNotOnTeam;

    Swift

    init(userNotOnTeam: ())

    Return Value

    An initialized instance.

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

    Description of the “user_account_type” tag state: The user is a basic user or is on a limited team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserAccountType;

    Swift

    init(userAccountType: ())

    Return Value

    An initialized instance.

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

    Description of the “permission_denied” tag state: The user does not have permission.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPermissionDenied;

    Swift

    init(permissionDenied: ())

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

    Declaration

    Objective-C

    - (BOOL)isDeleteAndRecreate;

    Swift

    func isDeleteAndRecreate() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isRestrictedBySharedFolder;

    Swift

    func isRestrictedBySharedFolder() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isRestrictedByTeam;

    Swift

    func isRestrictedByTeam() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isUserNotOnTeam;

    Swift

    func isUserNotOnTeam() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isUserAccountType;

    Swift

    func isUserAccountType() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isPermissionDenied;

    Swift

    func isPermissionDenied() -> Bool

    Return Value

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

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