FeatureState

Feature state class needed for generic MapboxMap.setFeatureState and MapboxMap.getFeatureState.

Types

Link copied to clipboard
class Builder

Builder class to build FeatureState.

Functions

Link copied to clipboard

Return state as a JSON string.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Override equals method.

Link copied to clipboard
fun getBooleanState(stateName: String): Boolean?

Returns the state value for stateName if it exists and is a Boolean or can be coerced to a Boolean, or NULL otherwise.

Link copied to clipboard
fun getDoubleState(stateName: String): Double?

Returns the state value for stateName if it exists and is a Double or can be coerced to a Double, or NULL otherwise.

Link copied to clipboard
fun getLongState(stateName: String): Long?

Returns the state value for stateName if it exists and is a Long or can be coerced to a Long, or NULL otherwise.

Link copied to clipboard
fun getStringState(stateName: String): String?

Returns the state value for stateName if it exists and is a String or can be coerced to a String, or NULL otherwise.

Link copied to clipboard
open override fun hashCode(): Int

Override hashCode method.

Link copied to clipboard
open override fun toString(): String

Override toString method.