Defines the enumerations of the XComponent component, which are used to describe the rendering types of XComponent. They support EGL/OpenGL ES drawing and media data write scenarios, meeting your rendering requirements to display custom content individually or composited with the component.
File to include: <arkui/node_attributes/xcomponent.h>
Library: libace_ndk.z.so
System capability: SystemCapability.ArkUI.ArkUI.Full
Since: 12
Related module: ArkUI_NativeModule
Sample: xcomponent_sample
| Name | typedef Keyword | Description |
|---|---|---|
| ArkUI_XComponentType | ArkUI_XComponentType | Enumerates the types of the XComponent component. |
enum ArkUI_XComponentType
Description
Enumerates the types of the XComponent component.
Since: 12
| Value | Description |
|---|---|
| ARKUI_XCOMPONENT_TYPE_SURFACE = 0 | The custom content of EGL/OpenGL ES and media data is displayed individually on the screen. |
| ARKUI_XCOMPONENT_TYPE_TEXTURE = 2 | The custom content of EGL/OpenGL ES and media data is composited with the XComponent content and then displayed on the screen. |