• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# hiappevent_event.h
2
3
4## Overview
5
6Defines the names of all predefined events.
7
8In addition to custom events associated with specific applications, you can use predefined events for logging.
9
10Example:
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**Since**: 8
20
21**Related module**: [HiAppEvent](_hi_app_event.md)
22
23
24## Summary
25
26
27### Macros
28
29| Name| Description|
30| -------- | -------- |
31| [EVENT_USER_LOGIN](_hi_app_event.md#event_user_login)   "hiappevent.user_login" | User login event.|
32| [EVENT_USER_LOGOUT](_hi_app_event.md#event_user_logout)   "hiappevent.user_logout" | User logout event.|
33| [EVENT_DISTRIBUTED_SERVICE_START](_hi_app_event.md#event_distributed_service_start)   "hiappevent.distributed_service_start" | Distributed service event.|
34