DBUSERSCOMMONAccountType
Objective-C
@interface DBUSERSCOMMONAccountType : NSObject <DBSerializable, NSCopying>
Swift
class DBUSERSCOMMONAccountType : NSObject, DBSerializable, NSCopying
The AccountType union.
What type of account this user has.
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) DBUSERSCOMMONAccountTypeTag tag;Swift
var tag: DBUSERSCOMMONAccountTypeTag { get }
-
Initializes union class with tag state of “basic”.
Description of the “basic” tag state: The basic account type.
Declaration
Objective-C
- (nonnull instancetype)initWithBasic;Swift
init(basic: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “pro”.
Description of the “pro” tag state: The Dropbox Pro account type.
Declaration
Objective-C
- (nonnull instancetype)initWithPro;Swift
init(pro: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “business”.
Description of the “business” tag state: The Dropbox Business account type.
Declaration
Objective-C
- (nonnull instancetype)initWithBusiness;Swift
init(business: ())Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “basic”.
Declaration
Objective-C
- (BOOL)isBasic;Swift
func isBasic() -> BoolReturn Value
Whether the union’s current tag state has value “basic”.
-
Retrieves whether the union’s current tag state has value “pro”.
Declaration
Objective-C
- (BOOL)isPro;Swift
func isPro() -> BoolReturn Value
Whether the union’s current tag state has value “pro”.
-
Retrieves whether the union’s current tag state has value “business”.
Declaration
Objective-C
- (BOOL)isBusiness;Swift
func isBusiness() -> BoolReturn Value
Whether the union’s current tag state has value “business”.
-
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
DBUSERSCOMMONAccountType Class Reference