Class PointDataSourceBuilder
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 Summary
Constructors Constructor Description PointDataSourceBuilder(MapContext context)Creates a data source builder instance in the given context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PointDataSourcebuild()Builds a PointDataSource instance and resets the builder instance.PointDataSourceBuilderwithName(java.lang.String dataSourceName)Configures the builder to use the given name for data source.PointDataSourceBuilderwithPoint(PointData point)Configures the builder to insert the given point in the data source.PointDataSourceBuilderwithPoints(java.util.List<PointData> points)Configures the builder to insert the given points in the data source.
-
-
-
Constructor Detail
-
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 Detail
-
withName
@NonNull public PointDataSourceBuilder withName(@NonNull java.lang.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 java.util.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.
-
-