Bind
fun Bind(focusManager: FocusManager = LocalFocusManager.current, clearOnKeyboardHidden: Boolean = true, force: Boolean = false)
Handles requests with focusManager while present in the composition. Optionally also clears focus after the IME changes from visible to hidden.
IME visibility is inferred from its bottom inset, so hardware or floating keyboards and hosts without IME insets may not be detected. An initially hidden IME does not clear focus. Prefer one binding per controller.
Parameters
focusManager
Manager on which focus is cleared. Defaults to the current composition's LocalFocusManager.
clearOnKeyboardHidden
Whether an IME visible-to-hidden transition should clear focus.
force
Passed to FocusManager.clearFocus; true also releases captured focus.