API reference

BooleanAttribute Class

An attribute that stores a Boolean value.
XML Usage Example:
<component name="Toggle">
  <BooleanAttribute name="isActive" defaultValue="true" />
</component>

Signature

class BooleanAttribute(
    key: Int,
    component: ComponentBase,
    attributeIndex: Int,
    initialValue: Boolean,
) : TypedAbstractAttribute<Boolean>

Constructors

BooleanAttribute ( key , component , attributeIndex , initialValue )
Signature
constructor(key: Int, component: ComponentBase, attributeIndex: Int, initialValue: Boolean)
Parameters
key: Int  The integer key for this attribute
component: ComponentBase  The component this attribute belongs to
attributeIndex: Int
initialValue: Boolean  The initial value for this attribute
Returns
BooleanAttribute

Properties

value : Boolean
[Get][Set]
Signature
var value: Boolean
version : ULong
[Get][Set]
Signature
open override var version: ULong

Methods

checkIfComponentIsOld ()
Signature
fun checkIfComponentIsOld()
checkIfComponentIsRecycled ()
Signature
fun checkIfComponentIsRecycled()
get ()
Signature
open override fun get(): Any
Returns
Any
getValue ( thisRef , property )
Signature
operator fun getValue(thisRef: Any?, property: KProperty<*>): Boolean
Parameters
thisRef: Any?
property: KProperty<*>
Returns
Boolean
set ( value )
Signature
open override fun set(value: Any)
Parameters
value: Any
setValue ( thisRef , property , value )
Signature
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: Boolean)
Parameters
thisRef: Any?
property: KProperty<*>
value: Boolean