kt-mvvm / com.dukescript.api.kt / action

action

fun Provider.action(f: () -> Unit): Readable<Action>

Creates a handler to react on action happening in the user interface.

public var rotating: Boolean by observable(false)
val turnAnimationOn: Action by action {
        rotating = true
    }