Class PointDataSourceBuilder

java.lang.Object
com.here.NativeBase
com.here.sdk.mapview.datasource.PointDataSourceBuilder

public final class PointDataSourceBuilder extends NativeBase

Builder of points data source.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

  • Constructor Details

    • PointDataSourceBuilder

      public PointDataSourceBuilder(@NonNull MapContext context)

      Creates a data source builder instance in the given context.

      Parameters:
      context -

      Map context to associate the data source with.

  • Method Details

    • withName

      @NonNull public PointDataSourceBuilder withName(@NonNull String dataSourceName)

      Configures the builder to use the given name for data source.

      Parameters:
      dataSourceName -

      Name of the created data source. Must be unique.

      Returns:

      This data source builder instance.

    • withPoint

      @NonNull public PointDataSourceBuilder withPoint(@NonNull PointData point)

      Configures the builder to insert the given point in the data source.

      Parameters:
      point -

      Point to be added.

      Returns:

      This data source builder instance.

    • withPoints

      @NonNull public PointDataSourceBuilder withPoints(@NonNull List<PointData> points)

      Configures the builder to insert the given points in the data source.

      Parameters:
      points -

      Points to be added.

      Returns:

      This data source builder instance.

    • build

      @NonNull public PointDataSource build()

      Builds a PointDataSource instance and resets the builder instance.

      Returns:

      Instance of the data source created with given points and attributes.