HERE Android SDK Developer's Guide

ARPolylineObject

The class ARPolylineObject is a member of com.here.android.mpa.ar .

Class Summary

public final class ARPolylineObject

extends java.lang.Object

Represent a ARPolyline that users can add to a ARController.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in ARPolylineObject
Constructors

ARPolylineObject (GeoPolyline polyline)

Create ARPolylineObject with GeoPolyline.

ARPolylineObject (GeoPolyline polyline, LineAttributes lineAttributes)

Create ARPolylineObject with a GeoPolyline and a line attribute.

Method Summary

Table 2. Methods in ARPolylineObject
Methods

public GeoPolyline getGeoPolyLine ()

Get the GeoPolyline used for this ARPolyline.

public LineAttributes getLineAttributes ()

Get the LineAttributes used for this ARPolyline.

public void setGeoPolyline (GeoPolyline polyline)

Changes the GeoPolyline rendered by this ARPolylineObject

public void setLineAttributes (LineAttributes lineAttributes)

Changes the LineAttributes rendered by this ARPolylineObject

Class Details

Represent a ARPolyline that users can add to a ARController. This class also provide features to customize polyline attributes such as width of line, color and so on.

Constructor Details

ARPolylineObject (GeoPolyline polyline)

Create ARPolylineObject with GeoPolyline. In this case, a default line attributes LineAttributes will be used.

Parameters:

Throws:

  • NullPointerException

    if GeoPolyline is null.

ARPolylineObject (GeoPolyline polyline, LineAttributes lineAttributes)

Create ARPolylineObject with a GeoPolyline and a line attribute.

Parameters:

  • polyline

    a GeoPolyline

  • lineAttributes

    attributes to customize line features such as width, color, line end cap style.

Throws:

  • NullPointerException

    if GeoPolyline is null OR lineAttributes is null.

Method Details

public GeoPolyline getGeoPolyLine ()

Get the GeoPolyline used for this ARPolyline.

Returns:

GeoPolyline used for this ARPolyline.

public LineAttributes getLineAttributes ()

Get the LineAttributes used for this ARPolyline.

Returns:

LineAttributes used for this ARPolyline.

public void setGeoPolyline (GeoPolyline polyline)

Changes the GeoPolyline rendered by this ARPolylineObject

Parameters:

  • polyline

    GeoPolyline to be rendered

public void setLineAttributes (LineAttributes lineAttributes)

Changes the LineAttributes rendered by this ARPolylineObject

Parameters:

  • lineAttributes

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.