Package-level declarations

Types

Link copied to clipboard
actual open class Binder

Actual implementation of Binder on Android platform.

expect open class Binder

Object associated with StateHolder. Actual implementations contain properties that are utilities for a particular platform to ease state observation.

actual open class Binder

Actual implementation of Binder

actual open class Binder
Link copied to clipboard
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>
Link copied to clipboard
interface StateHolder

Classes that aim to provide a Stateful that platforms can observe should implement this interface to allow easy binding using auto-generated files for iOS. Implementing StateHolder also provides a DSL for creating various Stateful values, for example with stateful function.

Functions

Link copied to clipboard
actual fun <T : Any> StateHolder.stateful(initialValue: T): Stateful<T>

Creates a Stateful

expect fun <T : Any> StateHolder.stateful(initialValue: T): Stateful<T>

Returns Stateful of type T

actual fun <T : Any> StateHolder.stateful(initialValue: T): Stateful<T>

Creates Stateful with provided initial value and callback set to one defined in StateHolder's Binder object.

actual fun <T : Any> StateHolder.stateful(initialValue: T): Stateful<T>
Link copied to clipboard

Provides a short way to a class can conform to StateHolder interface. Creates a default StateHolder implementation. Mainly used with delegation pattern StateHolder for more information.