State

class State(@DrawableRes val icon: Int, val text: String? = null, val duration: Long = 0)

Value object for updating button state.

Constructors

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

Properties

Link copied to clipboard
val duration: Long = 0

Duration in milliseconds for button extend animation.

Link copied to clipboard
val icon: Int

Drawable Resource Id.

Link copied to clipboard
val text: String? = null

Message text for extended button.

Functions

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

Indicates whether some other object is "equal to" this one.

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

Returns a hash code value for the object.

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

Returns a string representation of the object.