I am trying to detect whether the keyboard is visible or not. The standard way of detecting the keyboard in mobile does not work in Android TV.
Any suggestions?
I am trying to detect whether the keyboard is visible or not. The standard way of detecting the keyboard in mobile does not work in Android TV.
Any suggestions?
May I ask why you want to know the keyboard status?
If i had no other way i would:-
What I was looking for something like this
fun isKeyBoardVisible() = ViewCompat.getRootWindowInsets(requireView())?.isVisible(WindowInsetsCompat.Type.ime()) ?: false