DBSHARINGSharedFolderMemberError
Objective-C
@interface DBSHARINGSharedFolderMemberError
: NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGSharedFolderMemberError : NSObject, DBSerializable, NSCopying
The SharedFolderMemberError 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) DBSHARINGSharedFolderMemberErrorTag tag;Swift
var tag: DBSHARINGSharedFolderMemberErrorTag { get } -
The target member only has inherited access to the shared folder. @note Ensure the
isNoExplicitAccessmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGMemberAccessLevelResult *_Nonnull noExplicitAccess;Swift
var noExplicitAccess: DBSHARINGMemberAccessLevelResult { get }
-
Initializes union class with tag state of “invalid_dropbox_id”.
Description of the “invalid_dropbox_id” tag state: The target dropbox_id is invalid.
Declaration
Objective-C
- (nonnull instancetype)initWithInvalidDropboxId;Swift
init(invalidDropboxId: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “not_a_member”.
Description of the “not_a_member” tag state: The target dropbox_id is not a member of the shared folder.
Declaration
Objective-C
- (nonnull instancetype)initWithNotAMember;Swift
init(notAMember: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “no_explicit_access”.
Description of the “no_explicit_access” tag state: The target member only has inherited access to the shared folder.
Declaration
Objective-C
- (nonnull instancetype)initWithNoExplicitAccess: (nonnull DBSHARINGMemberAccessLevelResult *)noExplicitAccess;Swift
init(noExplicitAccess: DBSHARINGMemberAccessLevelResult)Parameters
noExplicitAccessThe target member only has inherited access to the shared folder.
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 “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 “not_a_member”.
Declaration
Objective-C
- (BOOL)isNotAMember;Swift
func isNotAMember() -> BoolReturn Value
Whether the union’s current tag state has value “not_a_member”.
-
Retrieves whether the union’s current tag state has value “no_explicit_access”.
Note
Call this method and ensure it returns true before accessing the
noExplicitAccessproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isNoExplicitAccess;Swift
func isNoExplicitAccess() -> BoolReturn Value
Whether the union’s current tag state has value “no_explicit_access”.
-
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
DBSHARINGSharedFolderMemberError Class Reference