Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call emoji keyboard programmatically?

It is possible to trigger the emoji keyboard programmatically?

I am trying to open the emoji keyboard when the user click in a button, it is possible?

like image 229
Matheus Weber Avatar asked Sep 20 '16 03:09

Matheus Weber


People also ask

How do you set up emoji on Android?

Open the Settings menu for your Android.You can do this by tapping the Settings app in your Apps list. Emoji support is dependent on the version of Android that you are using, since emoji is a system-level font. Each new release of Android adds support for newer emoji characters.

Is there an emoji keyboard?

Insert emojis, GIFs, and symbols with the emoji panel To use it: During text entry, type Windows logo key + . (period). The emoji keyboard will appear.

How do I hide Emojis on my keyboard?

(There's a shortcut to this location, too: With virtual keyboard displayed, tap and hold on the comma [,] key until you see a small Settings gear appear.) Now, disable the option “Show emoji switch key.” With this change, the emoji (and GIF) nonsense will be moved so that it is an alternate for the comma key.


1 Answers

Here is answer:

Change the iOS keyboard layout to emoji?

After that, do follow:

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    messageTextView.keyboardType = .asciiCapable
}

override func viewDidAppear(_ animated: Bool) {
    super.viewDidAppear(animated)
    messageTextView.keyboardType = .default
    messageTextView.reloadInputViews()
}

After press button call: messageTextView.reloadInputViews()

like image 164
Ihor Chernysh Avatar answered Oct 21 '22 00:10

Ihor Chernysh