From 24cdfb0c1e2f7e6fc8e0f742ddd1b47f1a163324 Mon Sep 17 00:00:00 2001 From: liujiaxing19 Date: Fri, 20 Jun 2025 11:06:44 +0800 Subject: [PATCH] =?UTF-8?q?hiappevent=E6=96=B0=E5=A2=9E=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=A4=84=E7=90=86=E8=80=85=E7=9A=84=E9=85=8D=E7=BD=AE=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liujiaxing19 --- .../hiappevent/include/hiappevent/hiappevent.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/zh-cn/native_sdk/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h b/zh-cn/native_sdk/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h index aee0768d..a5375250 100644 --- a/zh-cn/native_sdk/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h +++ b/zh-cn/native_sdk/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h @@ -733,6 +733,21 @@ int OH_HiAppEvent_SetCustomConfig(HiAppEvent_Processor* processor, const char* k */ int OH_HiAppEvent_SetConfigId(HiAppEvent_Processor* processor, int configId); +/** + * @brief 设置处理者的配置名称的接口。 + * + * @param processor 指向处理者的指针(即OH_HiAppEvent_CreateProcessor接口返回的指针)。 + * @param configName 数据处理者的配置名称,支持从配置文件中加载对应配置,默认为“SDK_OCG”。只能包含大小写字母、数字、下划线和$,不能以数字开头,长度非空且不超过256个字符。 + * @return {@link HIAPPEVENT_SUCCESS}:接口调用成功;\n + * {@link HIAPPEVENT_PROCESSOR_IS_NULL}:processor入参为空;\n + * {@link HIAPPEVENT_INVALID_PARAM_VALUE}:参数值无效;\n + * {@link HIAPPEVENT_INVALID_UID}:用户标识无效。\n + * {@link HIAPPEVENT_INVALID_PARAM_VALUE_LENGTH}:参数值长度无效。\n + * 具体可参考{@link HiAppEvent_ErrorCode}。 + * @since 20 + */ +int OH_HiAppEvent_SetConfigName(HiAppEvent_Processor* processor, const char* configName); + /** * @brief 设置处理者用户ID的接口。 * -- Gitee