StylePropertyValue(androidJvm)

Holds a style property value with meta data.

class StylePropertyValue(androidJvm) : Serializable

Constructors

StylePropertyValue
Link copied to clipboard
open fun StylePropertyValue(value: Value, kind: StylePropertyValueKind)

Functions

equals
Link copied to clipboard
open fun equals(object: Any): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

kind
Link copied to clipboard
private val kind: StylePropertyValueKind
value
Link copied to clipboard
private val value: Value

Extensions

silentUnwrap
Link copied to clipboard

Extension function for StylePropertyValue to silently unwrap StylePropertyValue to given type.

Returns null if couldn't convert or type doesn't match.

inline fun <T> StylePropertyValue.silentUnwrap(): T?
unwrap
Link copied to clipboard

Extension function for StylePropertyValue to unwrap StylePropertyValue to given type.

Throws exception if couldn't convert or type doesn't match.

inline fun <T> StylePropertyValue.unwrap(): T