HERE Android SDK Developer's Guide

OnPositionChangedListener

The interface OnPositionChangedListener is a member of com.here.android.mpa.common.PositioningManager.

Interface Summary

public static abstract interface PositioningManager.OnPositionChangedListener

Represents an interface for position update listeners.

[For complete information, see the section Interface Details]

See also:

addListener(WeakReference<OnPositionChangedListener>)

removeListener(OnPositionChangedListener)

Method Summary

Table 1. Methods in OnPositionChangedListener
Methods

public abstract void onPositionFixChanged (LocationMethod method, LocationStatus status)

A callback indicating that the position fix has changed.

public abstract void onPositionUpdated (LocationMethod method, GeoPosition position, boolean isMapMatched)

A callback indicating that the position has been updated.

Interface Details

Represents an interface for position update listeners.

See also:

addListener(WeakReference<OnPositionChangedListener>)

removeListener(OnPositionChangedListener)

Method Details

public abstract void onPositionFixChanged (LocationMethod method, LocationStatus status)

A callback indicating that the position fix has changed.

Parameters:

  • method

    A LocationMethod providing the status update (GPS or Network)

  • status

    A LocationStatus representing the updated positioning status

public abstract void onPositionUpdated (LocationMethod method, GeoPosition position, boolean isMapMatched)

A callback indicating that the position has been updated.

Parameters:

  • method

    A LocationMethod providing the position update (GPS or Network)

  • position

    A GeoPosition representing the updated position. The position can return null if the MapsEngine has not been initialized.

  • isMapMatched

    A boolean stating if the position is map matched or not. Map matching approximates user coordinates to the nearest road or navigation route If the value is false then it means an unmatched(raw) position is received. This SDK always returns false.