AutoClearFocusBehavior
A behavior for auto-clearing focus for [ComposeView].
AutoClearFocusBehavior
Class
Android
value class AutoClearFocusBehavior private constructor(private val value: Int)
A behavior for auto-clearing focus for ComposeView.
Companion Object
Properties
Android
val None = AutoClearFocusBehavior(0)
Interacting with this ComposeView won't automatically clear focus.
Android
val CursorBased = AutoClearFocusBehavior(1)
When interacting with this ComposeView with a cursor-based input device, a pointer down
event that occurs outside the currently focused item will result in focus being cleared.
This results in a UX experience where clicking with a mouse or touchpad outside of the currently focused item will clear focus, even if that item is focusable in touch mode. This does not apply to stylus input.
Android
val Default
The default AutoClearFocusBehavior. This value is currently CursorBased, but this is
subject to change.