Created
November 30, 2023 13:39
-
-
Save bronze1man/7267ce413af1da4e9b67d41406610a81 to your computer and use it in GitHub Desktop.
Detecting if the Android keyboard is visible or hidden with @composable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun isSoftInputVisibleInComposable():Boolean{ | |
@OptIn(ExperimentalLayoutApi::class) | |
return WindowInsets.isImeVisible | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment