API reference
API reference
Select your platform
No SDKs available
No versions available

BooleanAttribute

BooleanAttribute

class BooleanAttribute(keyString: String, key: Int, component: ComponentBase, initialValue: Boolean) : TypedAbstractAttribute<Boolean>
An attribute that stores a Boolean value.
XML Usage Example:
<component name="Toggle">
  <BooleanAttribute name="isActive" defaultValue="true" />
</component>

Constructors

NameSummary
BooleanAttribute
constructor(keyString: String, key: Int, component: ComponentBase, initialValue: Boolean)

Properties

NameSummary
value
var value: Boolean

Functions

NameSummary
checkIfComponentIsOld
fun checkIfComponentIsOld()
checkIfComponentIsRecycled
fun checkIfComponentIsRecycled()
get
open override fun get(): Any
getValue
operator fun getValue(thisRef: Any?, property: KProperty<*>): Boolean
keyName
fun keyName(): String
set
open override fun set(value: Any)
setValue
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: Boolean)
Did you find this page helpful?
Thumbs up icon
Thumbs down icon