目录

InputMethod_AttachOptions

typedef struct InputMethod_AttachOptions InputMethod_AttachOptions

Overview

InputMethod_AttachOptions is an opaque type for input method attachment options. It carries configuration parameters when an app attaches to the input method service and controls the initial behavior during attachment.

Purpose: It serves as a mandatory parameter for OH_InputMethodController_Attach and OH_InputMethodController_AttachWithUIContext, used to configure behavior options for input method attachment, including:

Usage scenarios:

Related functions

Function Description
OH_AttachOptions_Create Creates an AttachOptions instance.
OH_AttachOptions_CreateWithRequestKeyboardReason Creates an AttachOptions instance and specifies the requestKeyboardReason.
OH_AttachOptions_Destroy Destroys an AttachOptions instance.
OH_AttachOptions_IsShowKeyboard Obtains the showKeyboard value.
OH_AttachOptions_GetRequestKeyboardReason Obtains the requestKeyboardReason value.

Relationship with other structs:

Since: 12

Related module: InputMethod

Header file: inputmethod_attach_options_capi.h