1# hiappevent_event.h 2 3 4## 概述 5 6定义所有预定义事件的事件名称。 7 8除了与特定应用关联的自定义事件之外,您还可以使用预定义事件进行打点。 9 10示例代码: 11 12``` 13ParamList list = OH_HiAppEvent_CreateParamList(); 14OH_HiAppEvent_AddInt32Param(list, PARAM_USER_ID, 123); 15int res = OH_HiAppEvent_Write("user_domain", EVENT_USER_LOGIN, BEHAVIOR, list); 16OH_HiAppEvent_DestroyParamList(list); 17``` 18 19**起始版本:** 8 20 21**相关模块:**[HiAppEvent](_hi_app_event.md) 22 23 24## 汇总 25 26 27### 宏定义 28 29| 名称 | 描述 | 30| -------- | -------- | 31| [EVENT_USER_LOGIN](_hi_app_event.md#event_user_login) "hiappevent.user_login" | 用户登录事件。 | 32| [EVENT_USER_LOGOUT](_hi_app_event.md#event_user_logout) "hiappevent.user_logout" | 用户登出事件。 | 33| [EVENT_DISTRIBUTED_SERVICE_START](_hi_app_event.md#event_distributed_service_start) "hiappevent.distributed_service_start" | 分布式服务事件。 | 34