DBFILESGetTemporaryLinkError
Objective-C
@interface DBFILESGetTemporaryLinkError : NSObject <DBSerializable, NSCopying>
                Swift
class DBFILESGetTemporaryLinkError : NSObject, DBSerializable, NSCopying
                The GetTemporaryLinkError 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) DBFILESGetTemporaryLinkErrorTag tag;Swift
var tag: DBFILESGetTemporaryLinkErrorTag { get } - 
                  
                  
(no description). - note: Ensure the
isPathmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBFILESLookupError *_Nonnull path;Swift
var path: DBFILESLookupError { get } 
- 
                  
                  
Initializes union class with tag state of “path”.
Declaration
Objective-C
- (nonnull instancetype)initWithPath:(nonnull DBFILESLookupError *)path;Swift
init(path: DBFILESLookupError)Parameters
path(no description).
Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “email_not_verified”.
Description of the “email_not_verified” 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)initWithEmailNotVerified;Swift
init(emailNotVerified: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “unsupported_file”.
Description of the “unsupported_file” tag state: Cannot get temporary link to this file type; use
exportinstead.Declaration
Objective-C
- (nonnull instancetype)initWithUnsupportedFile;Swift
init(unsupportedFile: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “not_allowed”.
Description of the “not_allowed” tag state: The user is not allowed to request a temporary link to the specified file. For example, this can occur if the file is restricted or if the user’s links are banned https://help.dropbox.com/files-folders/share/banned-links.
Declaration
Objective-C
- (nonnull instancetype)initWithNotAllowed;Swift
init(notAllowed: ())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 “path”.
Note
Call this method and ensure it returns true before accessing the
pathproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isPath;Swift
func isPath() -> BoolReturn Value
Whether the union’s current tag state has value “path”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “email_not_verified”.
Declaration
Objective-C
- (BOOL)isEmailNotVerified;Swift
func isEmailNotVerified() -> BoolReturn Value
Whether the union’s current tag state has value “email_not_verified”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “unsupported_file”.
Declaration
Objective-C
- (BOOL)isUnsupportedFile;Swift
func isUnsupportedFile() -> BoolReturn Value
Whether the union’s current tag state has value “unsupported_file”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “not_allowed”.
Declaration
Objective-C
- (BOOL)isNotAllowed;Swift
func isNotAllowed() -> BoolReturn Value
Whether the union’s current tag state has value “not_allowed”.
 - 
                  
                  
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
        DBFILESGetTemporaryLinkError Class Reference