State

data class State(@DrawableRes() icon: Int, text: String?, duration: Long)

Value object for updating button state.

Constructors

State
Link copied to clipboard
fun State(@DrawableRes() icon: Int, text: String? = null, duration: Long = 0)

Functions

component1
Link copied to clipboard
operator fun component1(): Int
component2
Link copied to clipboard
operator fun component2(): String?
component3
Link copied to clipboard
operator fun component3(): Long
copy
Link copied to clipboard
fun copy(@DrawableRes() icon: Int, text: String? = null, duration: Long = 0): MapboxExtendableButton.State
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

duration
Link copied to clipboard
val duration: Long = 0
Duration in milliseconds for button extend animation.
icon
Link copied to clipboard
val icon: Int
Drawable Resource Id.
text
Link copied to clipboard
val text: String? = null
Message text for extended button.