DBSHARINGPermissionDeniedReason

Objective-C

@interface DBSHARINGPermissionDeniedReason
    : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGPermissionDeniedReason : NSObject, DBSerializable, NSCopying

The PermissionDeniedReason union.

Possible reasons the user is denied a permission.

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

    Description of the “user_not_same_team_as_owner” tag state: User is not on the same team as the folder owner.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserNotSameTeamAsOwner;

    Swift

    init(userNotSameTeamAsOwner: ())

    Return Value

    An initialized instance.

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

    Description of the “user_not_allowed_by_owner” tag state: User is prohibited by the owner from taking the action.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserNotAllowedByOwner;

    Swift

    init(userNotAllowedByOwner: ())

    Return Value

    An initialized instance.

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

    Description of the “target_is_indirect_member” tag state: Target is indirectly a member of the folder, for example by being part of a group.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTargetIsIndirectMember;

    Swift

    init(targetIsIndirectMember: ())

    Return Value

    An initialized instance.

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

    Description of the “target_is_owner” tag state: Target is the owner of the folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTargetIsOwner;

    Swift

    init(targetIsOwner: ())

    Return Value

    An initialized instance.

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

    Description of the “target_is_self” tag state: Target is the user itself.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTargetIsSelf;

    Swift

    init(targetIsSelf: ())

    Return Value

    An initialized instance.

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

    Description of the “target_not_active” tag state: Target is not an active member of the team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTargetNotActive;

    Swift

    init(targetNotActive: ())

    Return Value

    An initialized instance.

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

    Description of the “folder_is_limited_team_folder” tag state: Folder is team folder for a limited team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFolderIsLimitedTeamFolder;

    Swift

    init(folderIsLimitedTeamFolder: ())

    Return Value

    An initialized instance.

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

    Description of the “owner_not_on_team” tag state: The content owner needs to be on a Dropbox team to perform this action.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOwnerNotOnTeam;

    Swift

    init(ownerNotOnTeam: ())

    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 to perform this action on the link.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPermissionDenied;

    Swift

    init(permissionDenied: ())

    Return Value

    An initialized instance.

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

    Description of the “restricted_by_team” tag state: The user’s team policy prevents performing this action on the link.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRestrictedByTeam;

    Swift

    init(restrictedByTeam: ())

    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’s account type does not support this action.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserAccountType;

    Swift

    init(userAccountType: ())

    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 Dropbox team to perform this action.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserNotOnTeam;

    Swift

    init(userNotOnTeam: ())

    Return Value

    An initialized instance.

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

    Description of the “folder_is_inside_shared_folder” tag state: Folder is inside of another shared folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFolderIsInsideSharedFolder;

    Swift

    init(folderIsInsideSharedFolder: ())

    Return Value

    An initialized instance.

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

    Description of the “restricted_by_parent_folder” tag state: Policy cannot be changed due to restrictions from parent folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRestrictedByParentFolder;

    Swift

    init(restrictedByParentFolder: ())

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithInsufficientPlan:
        (nonnull DBSHARINGInsufficientPlan *)insufficientPlan;

    Swift

    init(insufficientPlan: DBSHARINGInsufficientPlan)

    Parameters

    insufficientPlan

    (no description).

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

    Declaration

    Objective-C

    - (BOOL)isUserNotSameTeamAsOwner;

    Swift

    func isUserNotSameTeamAsOwner() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isUserNotAllowedByOwner;

    Swift

    func isUserNotAllowedByOwner() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isTargetIsIndirectMember;

    Swift

    func isTargetIsIndirectMember() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isTargetIsOwner;

    Swift

    func isTargetIsOwner() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isTargetIsSelf;

    Swift

    func isTargetIsSelf() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isTargetNotActive;

    Swift

    func isTargetNotActive() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isFolderIsLimitedTeamFolder;

    Swift

    func isFolderIsLimitedTeamFolder() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isOwnerNotOnTeam;

    Swift

    func isOwnerNotOnTeam() -> Bool

    Return Value

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

  • 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 “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_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 “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 “folder_is_inside_shared_folder”.

    Declaration

    Objective-C

    - (BOOL)isFolderIsInsideSharedFolder;

    Swift

    func isFolderIsInsideSharedFolder() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isRestrictedByParentFolder;

    Swift

    func isRestrictedByParentFolder() -> Bool

    Return Value

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

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

    Note

    Call this method and ensure it returns true before accessing the insufficientPlan property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isInsufficientPlan;

    Swift

    func isInsufficientPlan() -> Bool

    Return Value

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

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