onFocusedChanged

inline fun Style.onFocusedChanged(noinline action: (FocusChangedEvent) -> Unit): Style

Sets a listener that will invoke the given lambda when this Component's focus changes. Setting this property will cause the Component to be represented as a View at mount time if it wasn't going to already.

See android.view.View.OnFocusChangeListener


inline fun Style.onFocusedChanged(enabled: Boolean, noinline action: (FocusChangedEvent) -> Unit): Style

Sets a listener that will invoke the given lambda when this Component's focus changes but only if enabled is true. If enabled, setting this property will cause the Component to be represented as a View at mount time if it wasn't going to already.

See android.view.View.OnFocusChangeListener