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.

Summary

Public functions

open Unit

This function is deprecated. Use cancelFocusChange instead

Cmn
Unit

Stop focus from changing.

Cmn

Public properties

FocusDirection

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

Cmn

Public functions

cancelFocus

@ExperimentalComposeUiApi
open fun cancelFocus(): Unit

cancelFocusChange

fun cancelFocusChange(): Unit

Stop focus from changing.

Public properties

requestedFocusDirection

val requestedFocusDirectionFocusDirection

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