Builder

class Builder : ViewObjectDataBuilder<B, I, D>

Constructors

Link copied to clipboard
open fun Builder(@NonNull firstVertex: GeoCoordinates, creator: ObjectCreator<MapPolyline, PolylineData>)
Link copied to clipboard
open fun Builder(@NonNull vertices: List<GeoCoordinates>, creator: ObjectCreator<MapPolyline, PolylineData>)

Functions

Link copied to clipboard
open fun addVertices(@NonNull nextVertex: Array<GeoCoordinates>): PolylineData.Builder
Adds the GeoCoordinate at the end of the path of the MapPolyline.
open fun addVertices(@NonNull vertices: List<GeoCoordinates>): PolylineData.Builder
Adds GeoCoordinates at the end of the path of the MapPolyline.
Link copied to clipboard
fun build(): I
Link copied to clipboard
open fun setBorders(borders: Boolean): PolylineData.Builder
Enables/Disables MapPolyline to be rendered with antialiased borders.
Link copied to clipboard
open fun setCornerRadius(cornerRadius: Float): PolylineData.Builder
Sets the dash corner radius, in range [0, lineWidth / 2], for the primary dash of the MapPolyline.
Link copied to clipboard
open fun setDashed(dashed: Boolean): PolylineData.Builder
Sets the appearance of this MapPolyline as either a dashed or solid line.
Link copied to clipboard
open fun setDashLength(dashLength: Float): PolylineData.Builder
Sets the dash length, for the MapPolyline.
Link copied to clipboard
open fun setLineColor(lineColor: Int): PolylineData.Builder
Sets the line color.
Link copied to clipboard
open fun setLineWidth(lineWidth: Float): PolylineData.Builder
Returns the line width, in pixels.
Link copied to clipboard
open fun setScalableWidth(scalable: Boolean): PolylineData.Builder
Sets the width of this MapPolyline to either scale or not scale with ground distance.
Link copied to clipboard
open fun setSecondaryColor(lineColor: Int): PolylineData.Builder
Sets the secondary line color (used for dash/border).
Link copied to clipboard
open fun setSecondaryDashLength(dashSecondaryLength: Float): PolylineData.Builder
Sets the secondary dash length, for the MapPolyline.
Link copied to clipboard
fun setZIndex(zIndex: Int): B
Link copied to clipboard
fun withPayload(@NonNull payload: Parcelable): B