Is there a way to programmatically trigger the virtual keyboard on iOS and Android in PlayN? Something like Gdx.input.setOnscreenKeyboardVisible(true);
in LibGDX.
The best I could find is the Keyboard interface, but from what I can tell, this can only get a whole line from the user, but I need per character (keypress) feedback.
As for Android, I think you should look at this answer. It does not give complete answer to it's question, but really fits yours.
To make long story short, you should have an EditText or some other control, able to receive keyboard input, request focus on it and in onFocus
handler call setSoftInputMethod
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With