Provides event type definitions for measurement, layout, and drawing of custom components for NativeNode API, used to register and handle measurement, layout, and drawing events of the content layer, foreground layer, and overlay layer.
File to include: <arkui/node_attributes/custom_attributes.h>
Library: libace_ndk.z.so
System capability: SystemCapability.ArkUI.ArkUI.Full
Since: 12
Related module: ArkUI_NativeModule
Sample: native_node_sample
| Name | typedef Keyword | Description |
|---|---|---|
| ArkUI_NodeCustomEventType | ArkUI_NodeCustomEventType | Enumerates custom component event types. |
enum ArkUI_NodeCustomEventType
Description
Enumerates custom component event types.
Since: 12
| Value | Description |
|---|---|
| ARKUI_NODE_CUSTOM_EVENT_ON_MEASURE = 1 << 0 | Custom measurement. Since: 12 |
| ARKUI_NODE_CUSTOM_EVENT_ON_LAYOUT = 1 << 1 | Custom layout. Since: 12 |
| ARKUI_NODE_CUSTOM_EVENT_ON_DRAW = 1 << 2 | Custom content layer drawing. Since: 12 |
| ARKUI_NODE_CUSTOM_EVENT_ON_FOREGROUND_DRAW = 1 << 3 | Custom foreground drawing. Since: 12 |
| ARKUI_NODE_CUSTOM_EVENT_ON_OVERLAY_DRAW = 1 << 4 | Custom overlay drawing. Since: 12 |
| ARKUI_NODE_CUSTOM_EVENT_ON_DRAW_FRONT = 1 << 5 | Custom content layer foreground drawing. Since: 20 |
| ARKUI_NODE_CUSTOM_EVENT_ON_DRAW_BEHIND = 1 << 6 | Custom content layer background drawing. Since: 20 |