HERE Android SDK Developer's Guide

Listener

The interface Listener is a member of com.here.android.mpa.odml.MapLoader.

Interface Summary

public static abstract interface MapLoader.Listener

Represents a listener interface for receiving notifications from the MapLoader.

[For complete information, see the section Interface Details]

Nested Class Summary

Table 1. Nested Classes in Listener
Nested Classes

public static abstract class MapLoader.Listener.Adapter

Default implementation for the MapLoader.Listener interface.

Method Summary

Table 2. Methods in Listener
Methods

public abstract void onCheckForUpdateComplete (boolean updateAvailable, String currentMapVersion, String newestMapVersion, ResultCode resultCode)

A callback indicating that the checkForMapDataUpdate() method has completed its operation.

public abstract void onGetMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

A callback indicating that the getMapPackages() method has completed its operation.

public abstract void onInstallMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

A callback indicating that the installMapPackages(List) method has completed its operation.

public abstract void onInstallationSize (long diskSize, long networkSize)

A callback triggered during certain MapLoader operations to indicate the size, in KB, of the map data which is to be downloaded and stored for that particular operation.

public abstract void onPerformMapDataUpdateComplete (MapPackage rootMapPackage, ResultCode resultCode)

A callback indicating that the performMapDataUpdate() method has completed its operation.

public abstract void onProgress (int progress)

A callback triggered during certain MapLoader operations to indicate the progress for that particular operation, a percentage value in the [0..100] range.

public abstract void onUninstallMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

A callback indicating that the uninstallMapPackages(List) method has completed its operation.

Interface Details

Represents a listener interface for receiving notifications from the MapLoader.

Method Details

public abstract void onCheckForUpdateComplete (boolean updateAvailable, String currentMapVersion, String newestMapVersion, ResultCode resultCode)

A callback indicating that the checkForMapDataUpdate() method has completed its operation.

Parameters:

  • updateAvailable

    A boolean specifying whether an update is available

  • currentMapVersion

    The current map data version, in the form "Major.Minor.Feature.Build" where each section is an unsigned integer

  • newestMapVersion

    The newest map data version, in the form "Major.Minor.Feature.Build" where each section is an unsigned integer

  • resultCode

    A ResultCode for the operation

public abstract void onGetMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

A callback indicating that the getMapPackages() method has completed its operation.

Parameters:

  • rootMapPackage

    A root MapPackage (other map packages can be obtained by accessing its children). Can be null if the ResultCode does not indicate success.

  • resultCode

    A ResultCode for the operation

public abstract void onInstallMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

A callback indicating that the installMapPackages(List) method has completed its operation.

Parameters:

  • rootMapPackage

    A root MapPackage (other map packages can be obtained by accessing its children). Can be null if the ResultCode does not indicate success.

  • resultCode

    A ResultCode for the operation

public abstract void onInstallationSize (long diskSize, long networkSize)

A callback triggered during certain MapLoader operations to indicate the size, in KB, of the map data which is to be downloaded and stored for that particular operation.

Parameters:

  • diskSize

    Amount of disk storage needed for the current operation

  • networkSize

    Amount of network traffic to be used for the current operation

public abstract void onPerformMapDataUpdateComplete (MapPackage rootMapPackage, ResultCode resultCode)

A callback indicating that the performMapDataUpdate() method has completed its operation.

Parameters:

  • rootMapPackage

    A root MapPackage (other map packages can be obtained by accessing its children). Can be null if the ResultCode does not indicate success.

  • resultCode

    A ResultCode for the operation

public abstract void onProgress (int progress)

A callback triggered during certain MapLoader operations to indicate the progress for that particular operation, a percentage value in the [0..100] range.

Parameters:

  • progress

    Progress completion percentage

public abstract void onUninstallMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

A callback indicating that the uninstallMapPackages(List) method has completed its operation.

Parameters:

  • rootMapPackage

    A root MapPackage (other map packages can be obtained by accessing its children). Can be null if the ResultCode does not indicate success.

  • resultCode

    A ResultCode for the operation

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.