HERE Android SDK Developer's Guide

RoadView

The class RoadView is a member of com.here.android.mpa.guidance.NavigationManager.

Class Summary

public static class NavigationManager.RoadView

extends java.lang.Object

This static class controls road view of turn by turn navigation.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in RoadView
Nested Classes

public static abstract interface NavigationManager.RoadView.Listener

Interface to report RoadView events.

public static abstract class NavigationManager.RoadView.ListenerAdapter

class and overload specific methods to have a smaller code footprint.

public static final enumeration NavigationManager.RoadView.Orientation

Used for setting the orientation when ROADVIEW or ROADVIEW_NOZOOM is used.

Method Summary

Table 2. Methods in RoadView
Methods

public void addListener (java.lang.ref.WeakReference <RoadView.Listener> listener)

Adds a Road View event listener as a WeakReference.

public boolean getAnimationEnabled ()

Deprecated: As of SDK 3.5, this feature is no longer supported.

checks if animation between map movements is enabled.

public Orientation getOrientation ()

Gets the current orientation used by ROADVIEW and ROADVIEW_NOZOOM.

public void removeListener (Listener listener)

Remove Road View event listener.

public void setAnimationEnabled (boolean enabled)

Deprecated: As of SDK 3.5.

set usage of animation between map movements.

public void setOrientation (Orientation orientation)

Sets the orientation for ROADVIEW and ROADVIEW_NOZOOM.

public Error zoomIn ()

Zooms in the map.

public Error zoomOut ()

Zooms out the map.

Class Details

This static class controls road view of turn by turn navigation.

Method Details

public void addListener (java.lang.ref.WeakReference <RoadView.Listener> listener)

Adds a Road View event listener as a WeakReference.

Parameters:

  • listener

    the Road View event listener to add.

public boolean getAnimationEnabled ()

Deprecated: As of SDK 3.5, this feature is no longer supported.

checks if animation between map movements is enabled.

Returns:

true if smooth animation is enabled between map movements in road view, false if no animation is used

public Orientation getOrientation ()

Gets the current orientation used by ROADVIEW and ROADVIEW_NOZOOM.

Returns:

The NavigationManager.RoadView.Orientation currently in use.

public void removeListener (Listener listener)

Remove Road View event listener.

Parameters:

  • listener

    the Road View event listener to remove.

public void setAnimationEnabled (boolean enabled)

Deprecated: As of SDK 3.5.

This feature is no longer supported.

set usage of animation between map movements.

Parameters:

  • enabled

    true if smooth animation is enabled between map movements in road view, false if no animation is used. Note: Use of animation is disabled by default and should only be enabled when ROADVIEW_NOZOOM is used.

public void setOrientation (Orientation orientation)

Sets the orientation for ROADVIEW and ROADVIEW_NOZOOM. This method is only effective after the navigation has started running, otherwise DYNAMIC is used by default.

Parameters:

public Error zoomIn ()

Zooms in the map.

Returns:

NONE on success.

public Error zoomOut ()

Zooms out the map.

Returns:

NONE on success.