🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

FocusEnterExitScope

Receiver scope for FocusProperties.onEnter and FocusProperties.onExit.

Source set: Common
public sealed interface FocusEnterExitScope

Receiver scope for FocusProperties.onEnter and FocusProperties.onExit. Developers can change focus with FocusRequester.requestFocus to change the focus or cancelFocusChange to stop the focus from changing.

Properties

requestedFocusDirection

Source set: Common
public val requestedFocusDirection: FocusDirection

The direction used to get into (with FocusProperties.onEnter) or leave (with FocusProperties.onExit) focus.

Functions

cancelFocusChange

Source set: Common
public fun cancelFocusChange()

Stop focus from changing.

cancelFocus

Source set: Common
@Deprecated("Use cancelFocusChange instead", replaceWith = ReplaceWith("cancelFocusChange"))
    public fun cancelFocus(): Unit

Content updated: