开发者

How to detect the current input language?

开发者 https://www.devze.com 2022-12-18 09:23 出处:网络
I am looking for a working code snippet for Symbian S60 5th edition in which: a) an application can detect the current input language (not the UI language);

I am looking for a working code snippet for Symbian S60 5th edition in which:

a) an application can detect the current input language (not the UI language);

b) an application can receive notifications when current input language is changed.

The function CurrentLanguage() from CPtiEngine always returns NULL, so that does not seem to be an option.

Thank开发者_如何学JAVA you.


Open the SDK docs ( or http://library.forum.nokia.com ) and search for "PTI Engine API" or CPtiEngine.


I eventually found the answer on my own. Here is the code:

CAknSettingCache& cache = CAknEnv::Static()->SettingCache();

TLanguage lang = cache.InputLanguage();

0

精彩评论

暂无评论...
验证码 换一张
取 消