rememberImeState

Creates and remembers a state that tracks whether the software keyboard (IME) is currently visible.

This function observes the window insets for the IME and returns a State that updates automatically when the keyboard is shown or hidden.

Return

A State object containing a boolean value that is true if the keyboard is visible, and false otherwise.