目录

InputMethod_InputMethodProxy

typedef struct InputMethod_InputMethodProxy InputMethod_InputMethodProxy

Overview

Provides an interaction proxy object between the app and the input method service. The app can call relevant APIs of the input method service and receive event callbacks from the input method service through this object. This struct is an opaque type. Its internal members shall not be accessed directly. Operations can only be performed through the function interfaces provided by this module.

Since: 12

Related module: InputMethod

Header file: inputmethod_inputmethod_proxy_capi.h

Struct Purpose

InputMethod_InputMethodProxy is the core proxy object for interaction between the app and the input method service. It is used to send requests and notifications to the input method service. With this proxy object, the app can show or hide the keyboard, notify the input method of changes to text selection ranges and configurations in the edit field, update the cursor position, and transmit private command data.

Lifecycle Management

Usage Notes

Related functions:

The following functions can be called via an InputMethod_InputMethodProxy object:

Function Description
OH_InputMethodProxy_ShowKeyboard Shows the keyboard.
OH_InputMethodProxy_ShowTextInput Shows the text input box.
OH_InputMethodProxy_HideKeyboard Hides the keyboard.
OH_InputMethodProxy_NotifySelectionChange Notifies the input method of changes to the text selection in the text input field.
OH_InputMethodProxy_NotifyConfigurationChange Notifies the input method of configuration changes for the text input field.
OH_InputMethodProxy_NotifyCursorUpdate Notifies the input method of cursor position updates.
OH_InputMethodProxy_SendPrivateCommand Sends private command data to the input method.

Relationships: