DBSHARINGShareFolderErrorBase
Objective-C
@interface DBSHARINGShareFolderErrorBase : NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGShareFolderErrorBase : NSObject, DBSerializable, NSCopying
The ShareFolderErrorBase
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) DBSHARINGShareFolderErrorBaseTag tag;
Swift
var tag: DBSHARINGShareFolderErrorBaseTag { get }
-
path
inDBSHARINGShareFolderArg
is invalid. - note: Ensure theisBadPath
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGSharePathError *_Nonnull badPath;
Swift
var badPath: DBSHARINGSharePathError { get }
-
Initializes union class with tag state of “email_unverified”.
Description of the “email_unverified” 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)initWithEmailUnverified;
Swift
init(emailUnverified: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “bad_path”.
Description of the “bad_path” tag state:
path
inDBSHARINGShareFolderArg
is invalid.Declaration
Objective-C
- (nonnull instancetype)initWithBadPath: (nonnull DBSHARINGSharePathError *)badPath;
Swift
init(badPath: DBSHARINGSharePathError)
Parameters
badPath
path
inDBSHARINGShareFolderArg
is invalid.Return Value
An initialized instance.
-
Initializes union class with tag state of “team_policy_disallows_member_policy”.
Description of the “team_policy_disallows_member_policy” tag state: Team policy is more restrictive than
memberPolicy
inDBSHARINGShareFolderArg
.Declaration
Objective-C
- (nonnull instancetype)initWithTeamPolicyDisallowsMemberPolicy;
Swift
init(teamPolicyDisallowsMemberPolicy: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “disallowed_shared_link_policy”.
Description of the “disallowed_shared_link_policy” tag state: The current user’s account is not allowed to select the specified
sharedLinkPolicy
inDBSHARINGShareFolderArg
.Declaration
Objective-C
- (nonnull instancetype)initWithDisallowedSharedLinkPolicy;
Swift
init(disallowedSharedLinkPolicy: ())
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 “email_unverified”.
Declaration
Objective-C
- (BOOL)isEmailUnverified;
Swift
func isEmailUnverified() -> Bool
Return Value
Whether the union’s current tag state has value “email_unverified”.
-
Retrieves whether the union’s current tag state has value “bad_path”.
Note
Call this method and ensure it returns true before accessing the
badPath
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isBadPath;
Swift
func isBadPath() -> Bool
Return Value
Whether the union’s current tag state has value “bad_path”.
-
Retrieves whether the union’s current tag state has value “team_policy_disallows_member_policy”.
Declaration
Objective-C
- (BOOL)isTeamPolicyDisallowsMemberPolicy;
Swift
func isTeamPolicyDisallowsMemberPolicy() -> Bool
Return Value
Whether the union’s current tag state has value “team_policy_disallows_member_policy”.
-
Retrieves whether the union’s current tag state has value “disallowed_shared_link_policy”.
Declaration
Objective-C
- (BOOL)isDisallowedSharedLinkPolicy;
Swift
func isDisallowedSharedLinkPolicy() -> Bool
Return Value
Whether the union’s current tag state has value “disallowed_shared_link_policy”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;
Swift
func isOther() -> Bool
Return 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() -> String
Return Value
A human-readable string representing the union’s current tag state.