DBFILESUploadSessionType

Objective-C

@interface DBFILESUploadSessionType : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESUploadSessionType : NSObject, DBSerializable, NSCopying

The UploadSessionType union.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

Constructors

  • Initializes union class with tag state of “sequential”.

    Description of the “sequential” tag state: Pieces of data are uploaded sequentially one after another. This is the default behavior.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSequential;

    Swift

    init(sequential: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “concurrent”.

    Description of the “concurrent” tag state: Pieces of data can be uploaded in concurrent RPCs in any order.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithConcurrent;

    Swift

    init(concurrent: ())

    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.

Tag state methods

  • Retrieves whether the union’s current tag state has value “sequential”.

    Declaration

    Objective-C

    - (BOOL)isSequential;

    Swift

    func isSequential() -> Bool

    Return Value

    Whether the union’s current tag state has value “sequential”.

  • Retrieves whether the union’s current tag state has value “concurrent”.

    Declaration

    Objective-C

    - (BOOL)isConcurrent;

    Swift

    func isConcurrent() -> Bool

    Return Value

    Whether the union’s current tag state has value “concurrent”.

  • 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.