DBSHARINGSharedLinkAccessFailureReason

Objective-C

@interface DBSHARINGSharedLinkAccessFailureReason
    : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGSharedLinkAccessFailureReason : NSObject, DBSerializable, NSCopying

The SharedLinkAccessFailureReason 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 “login_required”.

    Description of the “login_required” tag state: User is not logged in.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLoginRequired;

    Swift

    init(loginRequired: ())

    Return Value

    An initialized instance.

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

    Description of the “email_verify_required” tag state: This user’s email address is not verified. This functionality is only available on accounts with a verified email address. Users can verify their email address here https://www.dropbox.com/help/317.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithEmailVerifyRequired;

    Swift

    init(emailVerifyRequired: ())

    Return Value

    An initialized instance.

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

    Description of the “password_required” tag state: The link is password protected.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPasswordRequired;

    Swift

    init(passwordRequired: ())

    Return Value

    An initialized instance.

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

    Description of the “team_only” tag state: Access is allowed for team members only.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTeamOnly;

    Swift

    init(teamOnly: ())

    Return Value

    An initialized instance.

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

    Description of the “owner_only” tag state: Access is allowed for the shared link’s owner only.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOwnerOnly;

    Swift

    init(ownerOnly: ())

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

    Declaration

    Objective-C

    - (BOOL)isLoginRequired;

    Swift

    func isLoginRequired() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isEmailVerifyRequired;

    Swift

    func isEmailVerifyRequired() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isPasswordRequired;

    Swift

    func isPasswordRequired() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isOwnerOnly;

    Swift

    func isOwnerOnly() -> Bool

    Return Value

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

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