DBUSERSCOMMONAccountType

@interface 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.

  • 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() -> Bool

    Return 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() -> Bool

    Return 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() -> Bool

    Return 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() -> String

    Return Value

    A human-readable string representing the union’s current tag state.