Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to detect mobile keyboard active status? #17

Open
NDark opened this issue Aug 30, 2017 · 0 comments
Open

How to detect mobile keyboard active status? #17

NDark opened this issue Aug 30, 2017 · 0 comments

Comments

@NDark
Copy link

NDark commented Aug 30, 2017

Hi all,

Thanks for this plugin, that Unity not provides parameters to modify mobile keyboard on Android. Good job.

So far I can force to de-active mobile keyboard by using SetFocus(false) to specified NativeEditBox, but currently I can't find a way to detect when mobile keyboard of this plugin is active or not.

I've tried the method SetFocus(...) , but it seems when mobile keyboard was shown, this method will not be called.

( As Unity InputField, I can use TouchScreenKeyboard.visible to detect this signal. )

The scenario I need is

  1. User press the inputfield at the buttom part of Canvas, the app will move the specified GUI panel up , to show Inputfield in a proper place.
  2. As user press "Done"(right bottom) , "Close keyboard"(right up function panel at the top of mobile keyboard) , or "other place" above mobile keyboard, app will close mobile keyboard and move panel back to normal.

So the way I think to do this is to
a) To detect the status of current mobile keyboard of plugin outside as TouchScreenKeyboard.visible did .
b) To catch the message from and to plugin, and to call my function.

Any suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant