-
- /// <summary>
- /// Requests to create an option window from the input panel.
- /// The input panel can call this function to open the option window. This function calls OptionWindowCreated Event with OptionWindowType.Keyboard.
- /// </summary>
- /// <privilege>
- /// http://tizen.org/privilege/ime
- /// </privilege>
- /// <exception cref="InvalidOperationException">
- /// This can occur due to the following reasons:
- /// 1) The application does not have the privilege to call this function
- /// 2) Operation failed
- /// 3) IME main loop isn't started yet
- /// 4) OptionWindowCreated event has not been set
- /// </exception>
- /// <precondition>
- /// OptionWindowCreated and OptionWindowDestroyed event should be set
- /// </precondition>
- public static void CreateOptionWindow()
- {
- ErrorCode error = ImeCreateOptionWindow();
- if (error != ErrorCode.None)
- {
- Log.Error(LogTag, "CreapteOptionWindow Failed with error " + error);
- throw InputMethodExceptionFactory.CreateException(error);
- }
- }
-
- /// <summary>
- /// Requests to destroy an option window.
- /// The input panel can call this function to close the option window which is created from either the input panel or Settings application.
- /// </summary>
- /// <privilege>
- /// http://tizen.org/privilege/ime
- /// </privilege>
- /// <param name="window">The option window to destroy</param>
- /// <exception cref="InvalidOperationException">
- /// This can occur due to the following reasons:
- /// 1) The application does not have the privilege to call this function
- /// 2) Invalid Parameter
- /// 3) IME main loop isn't started yet
- /// </exception>
- /// <precondition>
- /// OptionWindowDestroyed Event must be set.
- /// </precondition>
- /// <postcondition>
- /// This function triggers the OptionWindowDestroyed Event if it is set.
- /// </postcondition>
- public static void DestroyOptionWindow(OptionWindow window)
- {
- ErrorCode error = ImeDestroyOptionWindow(window);
- if (error != ErrorCode.None)
- {
- Log.Error(LogTag, "DestroyOptionWindow Failed with error " + error);
- throw InputMethodExceptionFactory.CreateException(error);
- }
- }