is there a way to observe if an IME animation (either hiding or showing) is currently in progress? we have some code which has a slight delay after calling keyboard
hide()
before doing the next thing.. the UX feels nicer than without the delay, but the delay itself feels flimsy — in fact we probably need a condition that says we don’t have a delay on older API levels which don’t animate the IME at all.
it’d be cool if there was some kind of
isImeAnimating
state I could watch for this purpose, or something I could use to create a derived state to produce my own
isImeAnimating
, but I can’t think of anything immediately and a quick search hasn’t turned anything up
d
dorche
12/15/2022, 12:29 AM
Not sure if there's such API and there's probably a better way but couldn't you derive your delay from the value of ime window insets?