FocusRequester.Companion.FocusRequesterFactory


Convenient way to create multiple FocusRequester instances.

import androidx.compose.foundation.focusable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester

val (item1, item2, item3, item4) = remember { FocusRequester.createRefs() }
Column {
    Box(Modifier.focusRequester(item1).focusable())
    Box(Modifier.focusRequester(item2).focusable())
    Box(Modifier.focusRequester(item3).focusable())
    Box(Modifier.focusRequester(item4).focusable())
}

Summary

Public functions

operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn
operator FocusRequester
Cmn

Public functions

component1

operator fun component1(): FocusRequester

component10

operator fun component10(): FocusRequester

component11

operator fun component11(): FocusRequester

component12

operator fun component12(): FocusRequester

component13

operator fun component13(): FocusRequester

component14

operator fun component14(): FocusRequester

component15

operator fun component15(): FocusRequester

component16

operator fun component16(): FocusRequester

component2

operator fun component2(): FocusRequester

component3

operator fun component3(): FocusRequester

component4

operator fun component4(): FocusRequester

component5

operator fun component5(): FocusRequester

component6

operator fun component6(): FocusRequester

component7

operator fun component7(): FocusRequester

component8

operator fun component8(): FocusRequester

component9

operator fun component9(): FocusRequester