PointDataBuilder

public class PointDataBuilder
extension PointDataBuilder: NativeBase
extension PointDataBuilder: Hashable

Builder of PointData instances.

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.

  • Creates a builder instance.

    Declaration

    Swift

    public init()
  • Configures the builder with geodetic coordinates for point to be created.

    Declaration

    Swift

    public func withCoordinates(_ coordinates: GeoCoordinates) -> PointDataBuilder

    Parameters

    coordinates

    Geodetic coordinates of the point. Altitude of coordinates is ignored.

    Return Value

    The builder.

  • Configures the builder with custom attributes for point to be created.

    Declaration

    Swift

    public func withAttributes(_ attributes: DataAttributes) -> PointDataBuilder

    Parameters

    attributes

    Custom data attributes to be associated with the point.

    Return Value

    The builder.

  • Builds an instance of PointData and resets the builder instance.

    Declaration

    Swift

    public func build() -> PointData

    Return Value

    Instance of PointData created with the configured parameters.