| 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的值。 |