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.
-
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBFILESUploadSessionTypeTag tag;Swift
var tag: DBFILESUploadSessionTypeTag { get }
-
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.
-
Retrieves whether the union’s current tag state has value “sequential”.
Declaration
Objective-C
- (BOOL)isSequential;Swift
func isSequential() -> BoolReturn 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() -> BoolReturn 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() -> 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
DBFILESUploadSessionType Class Reference