DBFILESUploadSessionAppendArg

@interface DBFILESUploadSessionAppendArg : NSObject <DBSerializable, NSCopying>

The UploadSessionAppendArg struct.

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

  • Contains the upload session ID and the offset.

    Declaration

    Objective-C

    @property (readonly, nonatomic) DBFILESUploadSessionCursor *_Nonnull cursor;

    Swift

    var cursor: DBFILESUploadSessionCursor { get }
  • If true, the current session will be closed, at which point you won’t be able to call uploadSessionAppendV2 anymore with the current session.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSNumber *_Nonnull close;

    Swift

    var close: NSNumber { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCursor:
                                (nonnull DBFILESUploadSessionCursor *)cursor
                                     close:(nullable NSNumber *)close;

    Swift

    init(cursor: DBFILESUploadSessionCursor, close: NSNumber?)

    Parameters

    cursor

    Contains the upload session ID and the offset.

    close

    If true, the current session will be closed, at which point you won’t be able to call uploadSessionAppendV2 anymore with the current session.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCursor:
        (nonnull DBFILESUploadSessionCursor *)cursor;

    Swift

    init(cursor: DBFILESUploadSessionCursor)

    Parameters

    cursor

    Contains the upload session ID and the offset.

    Return Value

    An initialized instance.