Interface RegionListener

com.yandex.mapkit.offline_cache

public interface RegionListener

Attention.

This feature is not available in the free MapKit version.

Listener to handle region information.

Methods

void onRegionError(@NonNull Region region, @NonNull Error error)

Error occurred while downloading the specific region.

void onRegionProgress(@NonNull Region region)

Progress of specific region download was updated.

void onRegionStateChanged(@NonNull Region region)

Region state was changed.

Method Detail

onRegionError

public void onRegionError (@NonNull Region region, @NonNull Error 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.

onRegionProgress

public void onRegionProgress (@NonNull Region region)

Progress of specific region download was updated.

onRegionStateChanged

public void onRegionStateChanged (@NonNull Region region)

Region state was changed.