I’m using a similar version of the provided keyboard detection code snippet in the docs and change the keyboardDidShow listener for keyboardWillShow however the detection is very slow taking almost a second after the keyboard is fully out or fully hidden to log that function.
Is there a way to detect the keyboard as soon as it’s dismissed or invoked without waiting for animation?
As I recall,
keyboardWillShow only fires ahead of the keyboard showing on iOS. I think this was a limitation of the API’s Android offered for detecting keyboard behavior. I thought I recall something being added to the Android base OS itself more recently that would allow for faster detection, so maybe this will change in the future.
That said, I don’t usually find the
keyboardDidShow firing to be that slow on Android.