Class

AutoClearFocusBehavior

A behavior for auto-clearing focus for ComposeView.

Source set: Android
value class AutoClearFocusBehavior private constructor(private val value: Int)

A behavior for auto-clearing focus for ComposeView.

Companion Object

Properties

Source set: Android
val None = AutoClearFocusBehavior(0)

Interacting with this ComposeView won't automatically clear focus.

Source set: 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.

Source set: Android
val Default

The default AutoClearFocusBehavior. This value is currently CursorBased, but this is subject to change.

Last updated: