harmony 鸿蒙inputmethod_private_command_capi.h
inputmethod_private_command_capi.h
概述
提供私有数据对象的创建、销毁与读写方法。
库: libohinputmethod.so
系统能力: SystemCapability.MiscServices.InputMethodFramework
起始版本: 12
相关模块:InputMethod
汇总
类型定义
函数
名称 |
描述 |
InputMethod_PrivateCommand * OH_PrivateCommand_Create (char key[], size_t keyLength) |
创建一个新的InputMethod_PrivateCommand实例。 |
void OH_PrivateCommand_Destroy (InputMethod_PrivateCommand *command) |
销毁一个InputMethod_PrivateCommand实例。 |
InputMethod_ErrorCode OH_PrivateCommand_SetKey (InputMethod_PrivateCommand *command, char key[], size_t keyLength) |
设置InputMethod_PrivateCommand的key值。 |
InputMethod_ErrorCode OH_PrivateCommand_SetBoolValue (InputMethod_PrivateCommand *command, bool value) |
设置InputMethod_PrivateCommand的布尔类型value值。 |
InputMethod_ErrorCode OH_PrivateCommand_SetIntValue (InputMethod_PrivateCommand *command, int32_t value) |
设置InputMethod_PrivateCommand的整数类型value值。 |
InputMethod_ErrorCode OH_PrivateCommand_SetStrValue (InputMethod_PrivateCommand *command, char value[], size_t valueLength) |
设置InputMethod_PrivateCommand的字符串类型value值。 |
InputMethod_ErrorCode OH_PrivateCommand_GetKey (InputMethod_PrivateCommand *command, const char **key, size_t *keyLength) |
从InputMethod_PrivateCommand获取key值。 |
InputMethod_ErrorCode OH_PrivateCommand_GetValueType (InputMethod_PrivateCommand *command, InputMethod_CommandValueType *type) |
从InputMethod_PrivateCommand获取value的数据类型。 |
InputMethod_ErrorCode OH_PrivateCommand_GetBoolValue (InputMethod_PrivateCommand *command, bool *value) |
从InputMethod_PrivateCommand获取布尔类型的value的值。 |
InputMethod_ErrorCode OH_PrivateCommand_GetIntValue (InputMethod_PrivateCommand *command, int32_t *value) |
从InputMethod_PrivateCommand获取整数类型的value的值。 |
InputMethod_ErrorCode OH_PrivateCommand_GetStrValue (InputMethod_PrivateCommand *command, const char **value, size_t *valueLength) |
从InputMethod_PrivateCommand获取字符串类型的value的值。 |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙IME Kit(输入法开发服务)
harmony 鸿蒙InputMethod
harmony 鸿蒙输入法框架错误码
harmony 鸿蒙inputmethod_attach_options_capi.h
harmony 鸿蒙inputmethod_controller_capi.h
harmony 鸿蒙inputmethod_cursor_info_capi.h
harmony 鸿蒙inputmethod_inputmethod_proxy_capi.h
harmony 鸿蒙inputmethod_text_avoid_info_capi.h
harmony 鸿蒙inputmethod_text_config_capi.h
harmony 鸿蒙inputmethod_text_editor_proxy_capi.h