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

androidx.ui.core.focus

Extension functions summary

For FocusNode
Unit

Checks the focus state of the Owner and Initializes the focus state of the node.

Extension functions

initializeFocusState

fun FocusNode.initializeFocusState(): Unit

Checks the focus state of the Owner and Initializes the focus state of the node.

Note: This function acts only on the root node. It is a no-op for other nodes.

TODO(b/151765386): Delete this function after converting focus to a Modifier.