DBFILESUploadSessionCursor

@interface 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 (readonly, copy, nonatomic) NSString *_Nonnull sessionId;

    Swift

    var sessionId: String { get }
  • The amount of data that has been uploaded so far. We use this to make sure upload data isn’t lost or duplicated in the event of a network error.

    Declaration

    Objective-C

    @property (readonly, nonatomic) 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

    The amount of data that has been uploaded so far. 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.