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

BooleanAttribute Class

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

Signature

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

Constructors

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

Properties

value : Boolean
[Get][Set]
Signature
var value: Boolean

Functions

checkIfComponentIsOld ()
Signature
fun checkIfComponentIsOld()
checkIfComponentIsRecycled ()
Signature
fun checkIfComponentIsRecycled()
get () : Any
Signature
open override fun get(): Any
Returns
Any
getValue ( thisRef , property ) : Boolean
Signature
operator fun getValue(thisRef: Any?, property: KProperty<*>): Boolean
Parameters
thisRef: Any?
property: KProperty
Returns
Boolean
keyName () : String
Signature
fun keyName(): String
Returns
String
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
Did you find this page helpful?
Thumbs up icon
Thumbs down icon