val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager
val enabledInputMethodList = imm.enabledInputMethodList
In the above snippet, I'm able to get the enabled Keyboards in my device. But I would like to know specifically which keyboard( Gboard or Microsoft SwiftKey) is sending the event
See this answer: https://stackoverflow.com/a/14371088/6591585
It tells you the default keyboard app. While it doesn't say which keyboard is being used to input the text, chances are it's the same as the default.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.