HERE Android SDK Developer's Guide

StreetLevelBuilding

The class StreetLevelBuilding is a member of com.here.android.mpa.streetlevel .

Class Summary

public final class StreetLevelBuilding

extends com.here.android.mpa.streetlevel.StreetLevelProxyObject, com.here.android.mpa.common.ViewObject, java.lang.Object

Represents all street level building objects that are a visible component of an on-screen StreetLevelFragment.

[For complete information, see the section Class Details]

See also:

getVisibleBuildings()

Method Summary

Table 1. Methods in StreetLevelBuilding
Methods

public float getHighlight ()

Gets the current StreetLevelBuilding highlight intensity, a float value within the range of [0..1] where 0 represents minimum intensity and 1 represents maximum intensity.

public Identifier getIdentifier ()

Gets the unique StreetLevelBuilding identifier, used for binding StreetLevelIcon and StreetLevelBillboard objects.

public GeoCoordinate getPosition ()

Gets the GeoCoordinate representing the position of the StreetLevelBuilding .

public Type getType ()

Gets the type of object that the {link StreetLevelProxyObject} represents.

This method overrides streetlevel.StreetLevelProxyObject.getType(void)

public boolean setHighlight (float intensity)

Sets a highlight intensity for the StreetLevelBuilding , a float value within the range of [0..1] where 0 represents minimum intensity and 1 represents maximum intensity.

Class Details

Represents all street level building objects that are a visible component of an on-screen StreetLevelFragment.

See also:

getVisibleBuildings()

Method Details

public float getHighlight ()

Gets the current StreetLevelBuilding highlight intensity, a float value within the range of [0..1] where 0 represents minimum intensity and 1 represents maximum intensity.

Returns:

The current highlight intensity

public Identifier getIdentifier ()

Gets the unique StreetLevelBuilding identifier, used for binding StreetLevelIcon and StreetLevelBillboard objects.

Returns:

The Identifier for the building

public GeoCoordinate getPosition ()

Gets the GeoCoordinate representing the position of the StreetLevelBuilding .

Returns:

The GeoCoordinate. A null value is returned if the StreetLevelBuilding is not visible on screen.

public Type getType ()

Gets the type of object that the {link StreetLevelProxyObject} represents.

This method overrides streetlevel.StreetLevelProxyObject.getType(void)

public boolean setHighlight (float intensity)

Sets a highlight intensity for the StreetLevelBuilding , a float value within the range of [0..1] where 0 represents minimum intensity and 1 represents maximum intensity. The default value for highlight is 0, which represents no highlight.

Parameters:

  • intensity

    Desired highlight intensity

Returns:

true if the operation is successful. Returns false otherwise, for example, highlight intensity is not in the valid range.