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

TimeAttribute

TimeAttribute

class TimeAttribute(keyString: String, key: Int, component: ComponentBase, initialValue: Long) : TypedAbstractAttribute<Long>
An attribute that stores a Time value as a Long milliseconds.
XML Usage Example:
<component name="Timer">
 <TimeAttribute name="startTime" defaultValue="0" />
</component>

Constructors

NameSummary
TimeAttribute
constructor(keyString: String, key: Int, component: ComponentBase, initialValue: Long)

Properties

NameSummary
value
var value: Long

Functions

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