AFAIK, Android doesn't provide any API to check the visibility of software keyboard. And most recommended/used way to check visibility of s/w keyboard is as mentioned in How to check visibility of software keyboard in Android? , that is, by measuring the size/height of app window, if it is considerably lesser than device size, that means s/w keyboard is up. this works perfectly fine on Android version <= M with apps occupying full screen. But from Android N, apps can be in multi-window mode, this method of checking visibility of s/w keyboard will not work.
Any fool proof way to check visibility of s/w keyboard in multi-window mode?