<p align="center"><img alt="IME selector" src="../../images/ime_selector.png" /></p>
</li>
<li>Checking the IME status
-<p>You can check whether a specific IME is enabled or disabled in the system keyboard setting. You can also check which IME is currently selected as the default keyboard. These features are useful when the user installs a new keyboard.</p></li>
+<p>You can check whether a specific IME is enabled or disabled in the system keyboard setting. You can also check which IME is currently selected as the default keyboard. These features are useful when the user installs a new keyboard. And you can also get the number of IMEs which enabled (usable). </p></li>
</ul>
<h2 id="enable" name="enable">Checking the IME State</h2>
-<p>To check the current default keyboard or whether a specific IME is enabled:</p>
+<p>To check the current default keyboard or whether a specific IME is enabled or to get the number of IMEs which are enabled (usable):</p>
<ol>
<li>Add the <span style="font-family: Courier New,Courier,monospace">http://tizen.org/privilege/imemanager</span> privilege to the application manifest file.</li>
</pre>
<p>If the function is successful, it returns 0.</p>
+</li>
+<li>To get the number of IMEs which are enabled (usable), call the <span style="font-family: Courier New,Courier,monospace">ime_manager_get_enabled_ime_count()</span> function:
+
+<pre class="prettyprint">
+int get_enabled_ime_count()
+{
+ int count = ime_manager_get_enabled_ime_count();
+ if (count == 0)
+ {
+ if (get_last_result() != IME_MANAGER_ERROR_NONE)
+ {
+ // Error handling
+ }
+ }
+ // Take action
+
+ return count;
+}
+</pre>
+
+<p>If the function is successful, it returns the number of enabled IMEs. Otherwise 0.</p>
</li></ol>
<script type="text/javascript" src="../../scripts/jquery.zclip.min.js"></script>