DBFILESUploadSessionCursor
Objective-C
@interface DBFILESUploadSessionCursor : NSObject <DBSerializable, NSCopying>
Swift
class DBFILESUploadSessionCursor : NSObject, DBSerializable, NSCopying
The UploadSessionCursor
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
The upload session ID (returned by
uploadSessionStart
).Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull sessionId;
Swift
var sessionId: String { get }
-
Offset in bytes at which data should be appended. We use this to make sure upload data isn’t lost or duplicated in the event of a network error.
Declaration
Objective-C
@property (nonatomic, readonly) NSNumber *_Nonnull offset;
Swift
var offset: NSNumber { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithSessionId:(nonnull NSString *)sessionId offset:(nonnull NSNumber *)offset;
Swift
init(sessionId: String, offset: NSNumber)
Parameters
sessionId
The upload session ID (returned by
uploadSessionStart
).offset
Offset in bytes at which data should be appended. We use this to make sure upload data isn’t lost or duplicated in the event of a network error.
Return Value
An initialized instance.