TTLServiceDownloadStatusResponse Class Reference

Inherits from NSObject
Declared in TTLServiceEventDelegate.h

  progressState

The state of the download which will be one the options of TTLServiceDownloadProgressStatus

@property (nonatomic) TTLServiceDownloadProgressStatus progressState

Discussion

The state of the download which will be one the options of TTLServiceDownloadProgressStatus

Note, the states TTLServiceDownloadSuccessful or TTLServiceDownloadFailed do NOT indicate that the upload to the server has finished or failed. The process of uploading the driving data to the server is handled transparently by the SDK and the progress cannot be monitored explicitly.

However, when all upload data arrived at the backend successfully [TTLServiceEventDelegate onDownloadStatusUpdate:response:] will be called with the progressState TTLServiceUploadSuccessful

Declared In

TTLServiceEventDelegate.h

  progress

Indicates the amount of progress depending on the value progressState

@property (nonatomic) NSNumber *progress

Discussion

Indicates the amount of progress depending on the value progressState

  • In case progressState is TTLServiceDownloadStarted, progress contains the maximum number of bytes that are going to be sent from the LINK device to the smart phone. This information can be used to initialize a progress bar.

  • In case progressState is TTLServiceDownloadProgress, progress contains the current value of transferred bytes with the last transmission. This value is NOT the cumulated progress - this has to be handled by the custom app itself.

  • In case progressState is TTLServiceDownloadSuccessful, TTLServiceDownloadFailed or TTLServiceUploadSuccessful the progress is nil.

Declared In

TTLServiceEventDelegate.h

– description

- (NSString *_Nonnull)description