이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

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.