HERE Android SDK Developer's Guide

Adapter

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

Class Summary

public static abstract class MapLoader.Listener.Adapter

   implements com.here.android.mpa.odml.MapLoader.Listener

extends java.lang.Object

Default implementation for the MapLoader.Listener interface.

[For complete information, see the section Class Details]

See also:

MapLoader.Listener

Constructor Summary

Table 1. Constructors in Adapter
Constructors

Adapter ()

Method Summary

Table 2. Methods in Adapter
Methods

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

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

This method overrides odml.MapLoader.Listener.onCheckForUpdateComplete(boolean, String, String, MapLoader, ResultCode)

public void onGetMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

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

This method overrides odml.MapLoader.Listener.onGetMapPackagesComplete(MapPackage, MapLoader, ResultCode)

public void onInstallMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

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

This method overrides odml.MapLoader.Listener.onInstallMapPackagesComplete(MapPackage, MapLoader, ResultCode)

public 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.

This method overrides odml.MapLoader.Listener.onInstallationSize(long, long)

public void onPerformMapDataUpdateComplete (MapPackage rootMapPackage, ResultCode resultCode)

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

This method overrides odml.MapLoader.Listener.onPerformMapDataUpdateComplete(MapPackage, MapLoader, ResultCode)

public 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.

This method overrides odml.MapLoader.Listener.onProgress(int)

public void onUninstallMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

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

This method overrides odml.MapLoader.Listener.onUninstallMapPackagesComplete(MapPackage, MapLoader, ResultCode)

Class Details

Default implementation for the MapLoader.Listener interface. Clients may use this abstract class and overload specific methods to have a smaller code footprint.

See also:

MapLoader.Listener

Constructor Details

Adapter ()

Method Details

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

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

This method overrides odml.MapLoader.Listener.onCheckForUpdateComplete(boolean, String, String, MapLoader, ResultCode)

Parameters:

  • updateAvailable
  • currentMapVersion
  • newestMapVersion
  • resultCode

public void onGetMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

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

This method overrides odml.MapLoader.Listener.onGetMapPackagesComplete(MapPackage, MapLoader, ResultCode)

Parameters:

  • rootMapPackage
  • resultCode

public void onInstallMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

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

This method overrides odml.MapLoader.Listener.onInstallMapPackagesComplete(MapPackage, MapLoader, ResultCode)

Parameters:

  • rootMapPackage
  • resultCode

public 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.

This method overrides odml.MapLoader.Listener.onInstallationSize(long, long)

Parameters:

  • diskSize
  • networkSize

public void onPerformMapDataUpdateComplete (MapPackage rootMapPackage, ResultCode resultCode)

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

This method overrides odml.MapLoader.Listener.onPerformMapDataUpdateComplete(MapPackage, MapLoader, ResultCode)

Parameters:

  • rootMapPackage
  • resultCode

public 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.

This method overrides odml.MapLoader.Listener.onProgress(int)

Parameters:

  • progress

public void onUninstallMapPackagesComplete (MapPackage rootMapPackage, ResultCode resultCode)

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

This method overrides odml.MapLoader.Listener.onUninstallMapPackagesComplete(MapPackage, MapLoader, ResultCode)

Parameters:

  • rootMapPackage
  • resultCode