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;

Properties

  • 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 (readonly) NSError *_Nullable error;
  • isCancelled set to YES when task was cancelled.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    @property (readonly) uint32_t total;
  • map

    GLMapInfo for map being downloaded

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    @property (readonly) GLMapInfoDataSet dataSet;

Methods

  • Cancels downloading task at any time

    Declaration

    Objective-C

    - (void)cancel;