AutoClearFocusBehavior


A behavior for auto-clearing focus for ComposeView.

Summary

Public companion properties

AutoClearFocusBehavior

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.

android
AutoClearFocusBehavior

The default AutoClearFocusBehavior.

android
AutoClearFocusBehavior

Interacting with this ComposeView won't automatically clear focus.

android

Public companion properties

CursorBased

val CursorBasedAutoClearFocusBehavior

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.

Default

val DefaultAutoClearFocusBehavior

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

None

val NoneAutoClearFocusBehavior

Interacting with this ComposeView won't automatically clear focus.