DBSHARINGTransferFolderError
Objective-C
@interface DBSHARINGTransferFolderError : NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGTransferFolderError : NSObject, DBSerializable, NSCopying
The TransferFolderError 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) DBSHARINGTransferFolderErrorTag tag;Swift
var tag: DBSHARINGTransferFolderErrorTag { get } -
(no description). - note: Ensure the
isAccessErrormethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGSharedFolderAccessError *_Nonnull accessError;Swift
var accessError: DBSHARINGSharedFolderAccessError { get }
-
Initializes union class with tag state of “access_error”.
Declaration
Objective-C
- (nonnull instancetype)initWithAccessError: (nonnull DBSHARINGSharedFolderAccessError *)accessError;Swift
init(accessError: DBSHARINGSharedFolderAccessError)Parameters
accessError(no description).
Return Value
An initialized instance.
-
Initializes union class with tag state of “invalid_dropbox_id”.
Description of the “invalid_dropbox_id” tag state:
toDropboxIdinDBSHARINGTransferFolderArgis invalid.Declaration
Objective-C
- (nonnull instancetype)initWithInvalidDropboxId;Swift
init(invalidDropboxId: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “new_owner_not_a_member”.
Description of the “new_owner_not_a_member” tag state: The new designated owner is not currently a member of the shared folder.
Declaration
Objective-C
- (nonnull instancetype)initWithDNewOwnerNotAMember;Swift
init(dNewOwnerNotAMember: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “new_owner_unmounted”.
Description of the “new_owner_unmounted” tag state: The new designated owner has not added the folder to their Dropbox.
Declaration
Objective-C
- (nonnull instancetype)initWithDNewOwnerUnmounted;Swift
init(dNewOwnerUnmounted: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “new_owner_email_unverified”.
Description of the “new_owner_email_unverified” tag state: The new designated owner’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)initWithDNewOwnerEmailUnverified;Swift
init(dNewOwnerEmailUnverified: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “team_folder”.
Description of the “team_folder” tag state: This action cannot be performed on a team shared folder.
Declaration
Objective-C
- (nonnull instancetype)initWithTeamFolder;Swift
init(teamFolder: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “no_permission”.
Description of the “no_permission” tag state: The current user does not have permission to perform this action.
Declaration
Objective-C
- (nonnull instancetype)initWithNoPermission;Swift
init(noPermission: ())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 “access_error”.
Note
Call this method and ensure it returns true before accessing the
accessErrorproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isAccessError;Swift
func isAccessError() -> BoolReturn Value
Whether the union’s current tag state has value “access_error”.
-
Retrieves whether the union’s current tag state has value “invalid_dropbox_id”.
Declaration
Objective-C
- (BOOL)isInvalidDropboxId;Swift
func isInvalidDropboxId() -> BoolReturn Value
Whether the union’s current tag state has value “invalid_dropbox_id”.
-
Retrieves whether the union’s current tag state has value “new_owner_not_a_member”.
Declaration
Objective-C
- (BOOL)isDNewOwnerNotAMember;Swift
func isDNewOwnerNotAMember() -> BoolReturn Value
Whether the union’s current tag state has value “new_owner_not_a_member”.
-
Retrieves whether the union’s current tag state has value “new_owner_unmounted”.
Declaration
Objective-C
- (BOOL)isDNewOwnerUnmounted;Swift
func isDNewOwnerUnmounted() -> BoolReturn Value
Whether the union’s current tag state has value “new_owner_unmounted”.
-
Retrieves whether the union’s current tag state has value “new_owner_email_unverified”.
Declaration
Objective-C
- (BOOL)isDNewOwnerEmailUnverified;Swift
func isDNewOwnerEmailUnverified() -> BoolReturn Value
Whether the union’s current tag state has value “new_owner_email_unverified”.
-
Retrieves whether the union’s current tag state has value “team_folder”.
Declaration
Objective-C
- (BOOL)isTeamFolder;Swift
func isTeamFolder() -> BoolReturn Value
Whether the union’s current tag state has value “team_folder”.
-
Retrieves whether the union’s current tag state has value “no_permission”.
Declaration
Objective-C
- (BOOL)isNoPermission;Swift
func isNoPermission() -> BoolReturn Value
Whether the union’s current tag state has value “no_permission”.
-
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
DBSHARINGTransferFolderError Class Reference