MBXDownloadStatus
@interface MBXDownloadStatus : NSObject
Structure to hold current status information about ongoing download session.
-
Download id which was created by download request.
Declaration
Objective-C
@property (nonatomic) uint64_t downloadId; -
State of download request.
Declaration
Objective-C
@property (nonatomic) MBXDownloadState state; -
The optional which contains error information in case of failure when state is set to DownloadState::Failed.
Declaration
Objective-C
@property (nonatomic, nullable) MBXDownloadError *error; -
Total amount of bytes to receive. In some cases this value is unknown until we get final part of the file.
Declaration
Objective-C
@property (nonatomic, nullable) NSNumber *totalBytes; -
Amount of bytes already received and saved on the disk. Includes previous download attempts for a resumed download.
Declaration
Objective-C
@property (nonatomic) uint64_t receivedBytes; -
Amount of bytes received during the current resume attempt. For downloads that weren’t resumed, this value will be the same as receivedBytes.
Declaration
Objective-C
@property (nonatomic) uint64_t transferredBytes; -
Download options used to send the download request.
Declaration
Objective-C
@property (nonatomic, nonnull) MBXDownloadOptions *downloadOptions;
MBXDownloadStatus Class Reference