Getting reference to TouchScreenKeyboard on mobile devices

Unity automatically pulls up TouchScreenKeyboard when you tap on something in the UI like an InputField. This is great.

However, I can’t see anyway to actually get a reference to it. Why do I want a reference? So I can detect when TouchScreenKeyboard.done is true. This leaves me with two options, I’d take a solution on either one:

  1. Get a reference to Unity’s automatically pulled up TouchScreenKeyboard. Hence the question, if you know how, please let me know!
  2. Disable Unity from automatically pulling up the TouchScreenKeyboard on certain UI events. That way I can pull it up manually, and obviously grab my own reference.

Any help?

You can hide the keyboard under specified conditions: Click here to find out how also here

InputField has touchScreenKeyboard property, you can use it