Compose Modifier

focusOrder

Use this modifier to specify a custom focus traversal order.

focusOrder

Deprecated

Use focusProperties() instead

Source set: Common
fun Modifier.focusOrder(
    @Suppress("DEPRECATION") focusOrderReceiver: FocusOrder.() -> Unit
): Modifier

Use this modifier to specify a custom focus traversal order.

Parameters

focusOrderReceiver Specifies FocusRequesters that are used when the user wants to move the current focus to the next item, or wants to move focus left, right, up or down.

focusOrder

Deprecated

Use focusRequester() instead

Source set: Common
fun Modifier.focusOrder(focusRequester: FocusRequester): Modifier

A modifier that lets you specify a FocusRequester for the current composable so that this focusRequester can be used by another composable to specify a custom focus order.

focusOrder

Deprecated

Use focusProperties() and focusRequester() instead

Source set: Common
fun Modifier.focusOrder(
    focusRequester: FocusRequester,
    @Suppress("DEPRECATION") focusOrderReceiver: FocusOrder.() -> Unit,
): Modifier

A modifier that lets you specify a FocusRequester for the current composable along with focusOrder.

Last updated: