From: sungwook79.park Date: Mon, 16 May 2016 02:49:29 +0000 (+0900) Subject: Add guide.tutorial for new API ime_manager_get_enabled_ime_count X-Git-Tag: tizen_3.0/TD_SYNC/20161201~114^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2126a9e80c7c0d543542d3fd26faf60c7a3d6a13;p=sdk%2Fonline-doc.git Add guide.tutorial for new API ime_manager_get_enabled_ime_count Change-Id: Idbd508f7214a2c7b63832de02afc165a62b95c65 Signed-off-by: sungwook79.park --- diff --git a/org.tizen.guides/html/native/uix/ime_n.htm b/org.tizen.guides/html/native/uix/ime_n.htm index b21401b..0f3ad95 100644 --- a/org.tizen.guides/html/native/uix/ime_n.htm +++ b/org.tizen.guides/html/native/uix/ime_n.htm @@ -84,7 +84,7 @@

IME selector

  • Checking the IME status -

    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.

  • +

    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).

    diff --git a/org.tizen.tutorials/html/native/uix/ime_tutorial_n.htm b/org.tizen.tutorials/html/native/uix/ime_tutorial_n.htm index 672e1db..7b50fc1 100644 --- a/org.tizen.tutorials/html/native/uix/ime_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/uix/ime_tutorial_n.htm @@ -363,7 +363,7 @@ void show_ime_selector()

    Checking the IME State

    -

    To check the current default keyboard or whether a specific IME is enabled:

    +

    To check the current default keyboard or whether a specific IME is enabled or to get the number of IMEs which are enabled (usable):

    1. Add the http://tizen.org/privilege/imemanager privilege to the application manifest file.
    2. @@ -403,6 +403,27 @@ void get_active_ime()

      If the function is successful, it returns 0.

      + +
    3. To get the number of IMEs which are enabled (usable), call the ime_manager_get_enabled_ime_count() function: + +
      +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;
      +}
      +
      + +

      If the function is successful, it returns the number of enabled IMEs. Otherwise 0.