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

    Declaration

    Objective-C

    @property (readonly, atomic) BOOL isCancelled;
  • Bytes downloded by task

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    GLMapInfo for map being downloaded.

    Declaration

    Objective-C

    @property (readonly, atomic) GLMapInfo *_Nonnull map;
  • Cancels downloading task at any time

    Declaration

    Objective-C

    - (void)cancel;