HERE Android SDK Developer's Guide

OnMapDownloadListener

The interface OnMapDownloadListener is a member of com.here.android.mpa.common.MapEngine.

Interface Summary

public static abstract interface MapEngine.OnMapDownloadListener

Represents a listener to provide notification upon the start and completion of a data download event.

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnMapDownloadListener
Methods

public abstract void onMapDataDownloadEnd ()

A callback indicating that the map data download has completed

public abstract void onMapDataDownloadInProgress ()

A callback indicating that a map data download is in progress.

public abstract void onMapDataDownloadStart ()

A callback indicating that a map data download has started.

Interface Details

Represents a listener to provide notification upon the start and completion of a data download event. This listener provides callback notifications for any data download event performed by the SDK regardless of the type of data that is downloaded (map data, traffic data, route data etc.) and regardless of the operation that triggered the download. Data download is triggered automatically by the SDK when not enough offline data is available on the device to perform an operation like: move the Map to a new location, display traffic, calculate a route etc. There can be multiple cycles of #onMapDataDownloadStart(), #onMapDataDownloadEnd() before all required map data is downloaded for a specific operation. Users are suggested to wait at least 1 second after receiving the callback #onMapDataDownloadEnd() to see if there is any new #onMapDataDownloadStart() notifications. No new notifications means that all required data was downloaded. The only operation that will not trigger these notifications is when search is performed.

Method Details

public abstract void onMapDataDownloadEnd ()

A callback indicating that the map data download has completed

public abstract void onMapDataDownloadInProgress ()

A callback indicating that a map data download is in progress. This notification will be sent after onMapDataDownloadStart.

public abstract void onMapDataDownloadStart ()

A callback indicating that a map data download has started.