DBSHARINGCreateSharedLinkWithSettingsError
Objective-C
@interface DBSHARINGCreateSharedLinkWithSettingsError
: NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGCreateSharedLinkWithSettingsError : NSObject, DBSerializable, NSCopying
The CreateSharedLinkWithSettingsError
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) DBSHARINGCreateSharedLinkWithSettingsErrorTag tag;
Swift
var tag: DBSHARINGCreateSharedLinkWithSettingsErrorTag { get }
-
(no description). - note: Ensure the
isPath
method 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 }
-
The shared link already exists. You can call
listSharedLinks
to get the existing link, or use the provided metadata if it is returned. - note: Ensure theisSharedLinkAlreadyExists
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBSHARINGSharedLinkAlreadyExistsMetadata *sharedLinkAlreadyExists;
Swift
var sharedLinkAlreadyExists: DBSHARINGSharedLinkAlreadyExistsMetadata? { get }
-
There is an error with the given settings. - note: Ensure the
isSettingsError
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGSharedLinkSettingsError *_Nonnull settingsError;
Swift
var settingsError: DBSHARINGSharedLinkSettingsError { 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 “shared_link_already_exists”.
Description of the “shared_link_already_exists” tag state: The shared link already exists. You can call
listSharedLinks
to get the existing link, or use the provided metadata if it is returned.Declaration
Objective-C
- (nonnull instancetype)initWithSharedLinkAlreadyExists: (nullable DBSHARINGSharedLinkAlreadyExistsMetadata *) sharedLinkAlreadyExists;
Swift
init(sharedLinkAlreadyExists: DBSHARINGSharedLinkAlreadyExistsMetadata?)
Parameters
sharedLinkAlreadyExists
The shared link already exists. You can call
listSharedLinks
to get the existing link, or use the provided metadata if it is returned.Return Value
An initialized instance.
-
Initializes union class with tag state of “settings_error”.
Description of the “settings_error” tag state: There is an error with the given settings.
Declaration
Objective-C
- (nonnull instancetype)initWithSettingsError: (nonnull DBSHARINGSharedLinkSettingsError *)settingsError;
Swift
init(settingsError: DBSHARINGSharedLinkSettingsError)
Parameters
settingsError
There is an error with the given settings.
Return Value
An initialized instance.
-
Initializes union class with tag state of “access_denied”.
Description of the “access_denied” tag state: The user is not allowed to create a shared 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)initWithAccessDenied;
Swift
init(accessDenied: ())
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
path
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isPath;
Swift
func isPath() -> Bool
Return 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() -> Bool
Return Value
Whether the union’s current tag state has value “email_not_verified”.
-
Retrieves whether the union’s current tag state has value “shared_link_already_exists”.
Note
Call this method and ensure it returns true before accessing the
sharedLinkAlreadyExists
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isSharedLinkAlreadyExists;
Swift
func isSharedLinkAlreadyExists() -> Bool
Return Value
Whether the union’s current tag state has value “shared_link_already_exists”.
-
Retrieves whether the union’s current tag state has value “settings_error”.
Note
Call this method and ensure it returns true before accessing the
settingsError
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isSettingsError;
Swift
func isSettingsError() -> Bool
Return Value
Whether the union’s current tag state has value “settings_error”.
-
Retrieves whether the union’s current tag state has value “access_denied”.
Declaration
Objective-C
- (BOOL)isAccessDenied;
Swift
func isAccessDenied() -> Bool
Return Value
Whether the union’s current tag state has value “access_denied”.
-
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.