GLMapDownloadTask


@interface GLMapDownloadTask : NSObject

GLMapDownloadTask is a class that downloads offline maps. It allows to cancel map download and check download error.

See

[GLMapManager downloadMap:withCompletionBlock:]
  • Unavailable

    GLMapDownloadTask should be created with - [GLMapManager downloadMap:withCompletionBlock:]

    Plain -init is disabled

    Declaration

    Objective-C

    - (instancetype _Nonnull)init;
  • error is nil if no error happens. Otherwise error contains information from component that failed. Error domain could be ‘CURL’, ‘HTTP’, ‘XZ’ or ‘GLMap’. For more information check GLMapError

    Declaration

    Objective-C

    @property (atomic, readonly) NSError *_Nullable error;
  • isCancelled set to YES when task was cancelled.

    Declaration

    Objective-C

    @property (atomic, readonly) BOOL isCancelled;
  • Speed of transfer. NAN if transfer is not started.

    Declaration

    Objective-C

    @property (atomic, readonly) CGFloat speed;
  • Bytes downloded by task

    Declaration

    Objective-C

    @property (atomic, readonly) uint32_t downloaded;
  • Total bytes to downloded by task

    Declaration

    Objective-C

    @property (atomic, readonly) uint32_t total;
  • map

    GLMapInfo for map being downloaded

    Declaration

    Objective-C

    @property (atomic, readonly) GLMapInfo *_Nonnull map;
  • Data set being downloaded

    Declaration

    Objective-C

    @property (atomic, readonly) GLMapInfoDataSet dataSet;
  • Cancels downloading task at any time

    Declaration

    Objective-C

    - (void)cancel;