State Holder
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.
Recommended way to implement StateHolder interface is to us delegation pattern.
class ExampleClassWithState : StateHolder by StateHolder()Content copied to clipboard
See also
Properties
Extensions
Link copied to clipboard
Creates Stateful with provided initial value and callback set to one defined in StateHolder's Binder object.