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.
- 
                  
                  
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGSharedLinkAccessFailureReasonTag tag;Swift
var tag: DBSHARINGSharedLinkAccessFailureReasonTag { get } 
- 
                  
                  
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.
 
- 
                  
                  
Retrieves whether the union’s current tag state has value “login_required”.
Declaration
Objective-C
- (BOOL)isLoginRequired;Swift
func isLoginRequired() -> BoolReturn 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() -> BoolReturn 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() -> BoolReturn 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() -> BoolReturn 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() -> BoolReturn 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() -> BoolReturn 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() -> StringReturn Value
A human-readable string representing the union’s current tag state.
 
View on GitHub
        DBSHARINGSharedLinkAccessFailureReason Class Reference