Protocol YMKOfflineCacheRegionListener

Attention.

This feature is not available in the free MapKit version.

Listener to handle region information.

Instance Methods

- onRegionErrorWithRegion:error:

Error occurred while downloading the specific region.

- onRegionProgressWithRegion:

Progress of specific region download was updated.

- onRegionStateChangedWithRegion:

Region state was changed.

Method Detail

-onRegionErrorWithRegion:error:

- (void)onRegionErrorWithRegion:(nonnull YMKOfflineCacheRegion *)region
                          error:(nonnull NSError *)error 

Error occurred while downloading the specific region.

The download of other regions will continue.
Parameters:
error

Error has occurred. Expected error types: 1. RemoteError: server is unable to provide a specific region. 2. LocalError: unable to store region on disk. General error. 3. DiskFullError: not enough space to store region on disk. 4. RegionOutdatedError: downloaded map is out of date.

-onRegionProgressWithRegion:

- (void)onRegionProgressWithRegion:(nonnull YMKOfflineCacheRegion *)region 

Progress of specific region download was updated.

-onRegionStateChangedWithRegion:

- (void)onRegionStateChangedWithRegion:(nonnull YMKOfflineCacheRegion *)region 

Region state was changed.