Google is committed to advancing racial equity for Black communities. See how.

FocusManager

interface FocusManager
androidx.compose.ui.focus.FocusManager

Summary

Public methods
abstract Unit
clearFocus(forcedClear: Boolean = false)

Call this function to clear focus from the currently focused component, and set the focus to the root focus modifier.

Public methods

clearFocus

abstract fun clearFocus(forcedClear: Boolean = false): Unit

Call this function to clear focus from the currently focused component, and set the focus to the root focus modifier.

Parameters
forcedClear: Boolean = false : Whether we should forcefully clear focus regardless of whether we have any components that have Captured focus.