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
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: