DBSHARINGAddMemberSelectorError
Objective-C
@interface DBSHARINGAddMemberSelectorError
    : NSObject <DBSerializable, NSCopying>
                Swift
class DBSHARINGAddMemberSelectorError : NSObject, DBSerializable, NSCopying
                The AddMemberSelectorError 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) DBSHARINGAddMemberSelectorErrorTag tag;Swift
var tag: DBSHARINGAddMemberSelectorErrorTag { get } - 
                  
                  
The value is the ID that could not be identified. - note: Ensure the
isInvalidDropboxIdmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull invalidDropboxId;Swift
var invalidDropboxId: String { get } - 
                  
                  
The value is the e-email address that is malformed. - note: Ensure the
isInvalidEmailmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull invalidEmail;Swift
var invalidEmail: String { get } - 
                  
                  
The value is the ID of the Dropbox user with an unverified email address. Invite unverified users by email address instead of by their Dropbox ID.
Note
Ensure theisUnverifiedDropboxIdmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull unverifiedDropboxId;Swift
var unverifiedDropboxId: String { get } 
- 
                  
                  
Initializes union class with tag state of “automatic_group”.
Description of the “automatic_group” tag state: Automatically created groups can only be added to team folders.
Declaration
Objective-C
- (nonnull instancetype)initWithAutomaticGroup;Swift
init(automaticGroup: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “invalid_dropbox_id”.
Description of the “invalid_dropbox_id” tag state: The value is the ID that could not be identified.
Declaration
Objective-C
- (nonnull instancetype)initWithInvalidDropboxId: (nonnull NSString *)invalidDropboxId;Swift
init(invalidDropboxId: String)Parameters
invalidDropboxIdThe value is the ID that could not be identified.
Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “invalid_email”.
Description of the “invalid_email” tag state: The value is the e-email address that is malformed.
Declaration
Objective-C
- (nonnull instancetype)initWithInvalidEmail:(nonnull NSString *)invalidEmail;Swift
init(invalidEmail: String)Parameters
invalidEmailThe value is the e-email address that is malformed.
Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “unverified_dropbox_id”.
Description of the “unverified_dropbox_id” tag state: The value is the ID of the Dropbox user with an unverified email address. Invite unverified users by email address instead of by their Dropbox ID.
Declaration
Objective-C
- (nonnull instancetype)initWithUnverifiedDropboxId: (nonnull NSString *)unverifiedDropboxId;Swift
init(unverifiedDropboxId: String)Parameters
unverifiedDropboxIdThe value is the ID of the Dropbox user with an unverified email address. Invite unverified users by email address instead of by their Dropbox ID.
Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “group_deleted”.
Description of the “group_deleted” tag state: At least one of the specified groups in
membersinDBSHARINGAddFolderMemberArgis deleted.Declaration
Objective-C
- (nonnull instancetype)initWithGroupDeleted;Swift
init(groupDeleted: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “group_not_on_team”.
Description of the “group_not_on_team” tag state: Sharing to a group that is not on the current user’s team.
Declaration
Objective-C
- (nonnull instancetype)initWithGroupNotOnTeam;Swift
init(groupNotOnTeam: ())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 “automatic_group”.
Declaration
Objective-C
- (BOOL)isAutomaticGroup;Swift
func isAutomaticGroup() -> BoolReturn Value
Whether the union’s current tag state has value “automatic_group”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “invalid_dropbox_id”.
Note
Call this method and ensure it returns true before accessing the
invalidDropboxIdproperty, otherwise a runtime exception will be thrown.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 “invalid_email”.
Note
Call this method and ensure it returns true before accessing the
invalidEmailproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isInvalidEmail;Swift
func isInvalidEmail() -> BoolReturn Value
Whether the union’s current tag state has value “invalid_email”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “unverified_dropbox_id”.
Note
Call this method and ensure it returns true before accessing the
unverifiedDropboxIdproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isUnverifiedDropboxId;Swift
func isUnverifiedDropboxId() -> BoolReturn Value
Whether the union’s current tag state has value “unverified_dropbox_id”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “group_deleted”.
Declaration
Objective-C
- (BOOL)isGroupDeleted;Swift
func isGroupDeleted() -> BoolReturn Value
Whether the union’s current tag state has value “group_deleted”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “group_not_on_team”.
Declaration
Objective-C
- (BOOL)isGroupNotOnTeam;Swift
func isGroupNotOnTeam() -> BoolReturn Value
Whether the union’s current tag state has value “group_not_on_team”.
 - 
                  
                  
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
        DBSHARINGAddMemberSelectorError Class Reference