FocusEnterExitScope

Interface

Common
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

Common
val requestedFocusDirection: FocusDirection

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

Functions

fun cancelFocusChange()

Stop focus from changing.

@ExperimentalComposeUiApi
    
    fun cancelFocus() = cancelFocusChange()