Builder

class Builder(styleUri: String)

The builder for style extension.

Constructors

Builder
Link copied to clipboard
fun Builder(styleUri: String)

Functions

build
Link copied to clipboard
fun build(): StyleContract.StyleExtension
Build an StyleContract.StyleExtension instance from this builder.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
layerAtPosition
Link copied to clipboard
fun layerAtPosition(layer: Layer, above: String? = null, below: String? = null, at: Int? = null): Pair<Layer, LayerPosition>
Convenient function to combine Layer and LayerPosition into Pair<Layer, LayerPosition>.
toString
Link copied to clipboard
open fun toString(): String
unaryPlus
Link copied to clipboard
@JvmName(name = "addImage")
operator fun ImageExtensionImpl.unaryPlus()
Extension function for ImageExtensionImpl to overload Unary operations.
@JvmName(name = "addImage9Patch")
operator fun ImageNinePatchExtensionImpl.unaryPlus()
Extension function for ImageNinePatchExtensionImpl to overload Unary operations.
@JvmName(name = "addLayer")
operator fun Layer.unaryPlus()
Extension function for Layer to overload Unary operations.
@JvmName(name = "setLight")
operator fun Light.unaryPlus()
Extension function for Light to overload Unary operations.
@JvmName(name = "setProjection")
operator fun Projection.unaryPlus()
Extension function for Projection to overload Unary operations.
@JvmName(name = "addSource")
operator fun Source.unaryPlus()
Extension function for Source to overload Unary operations.
@JvmName(name = "setTerrain")
operator fun Terrain.unaryPlus()
Extension function for Terrain to overload Unary operations.
@JvmName(name = "addLayerAtPosition")
operator fun Pair<Layer, LayerPosition>.unaryPlus()
Extension function for Pair<Layer, LayerPosition> to overload Unary operations.

Properties

styleUri
Link copied to clipboard
val styleUri: String
The Uri of the style to load.