Stateful

actual open class Stateful<T : Any>

Actual implementation of Stateful on Android platform

expect open class Stateful<T : Any>

Stateful is a property delegate that represents a wrapper of type T which provides platform specific implementation allowing to receive value updates on target platforms. The value wrapped by Stateful is updated after write operation.

actual open class Stateful<T : Any>

Actual implementation of Stateful for iOS platform

actual open class Stateful<T : Any>

Parameters

initialValue

param that is going to be initial value of value mutableState

Constructors

Link copied to clipboard
fun <T : Any> Stateful(initialValue: T)
Link copied to clipboard
fun <T : Any> Stateful(initialValue: T, objectWillChange: () -> Unit)
fun <T : Any> Stateful(initialValue: T, onChanged: () -> Unit)

Functions

Link copied to clipboard
actual open operator fun getValue(thisRef: Any?, property: KProperty<*>): T
expect open operator fun getValue(thisRef: Any?, property: KProperty<*>): T
actual open operator fun getValue(thisRef: Any?, property: KProperty<*>): T
actual open operator fun getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
actual open operator fun setValue(thisRef: Any?, property: KProperty<*>, value: T)
expect open operator fun setValue(thisRef: Any?, property: KProperty<*>, value: T)
actual open operator fun setValue(thisRef: Any?, property: KProperty<*>, value: T)
actual open operator fun setValue(thisRef: Any?, property: KProperty<*>, value: T)