The Developer Preview for Android 11 is now available; test it out and share your feedback.

FocusManager

open class FocusManager
kotlin.Any
   ↳ androidx.ui.core.input.FocusManager

Manages focused composable and available.

You can access the active focus manager via ambient.

Summary

Public methods

Unit
requestFocusById(identifier: String)

Request the focus assiciated with the identifier.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Public methods

requestFocusById

fun requestFocusById(identifier: String): Unit

Request the focus assiciated with the identifier.

Do nothing if there is no focusable node assciated with given identifier.

Parameters
identifier: String The focusable node identifier.