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 ()

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)

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 ()

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)

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 if navigation speed is greater than or equal to 40kmh

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.

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.