typedef struct {...} ArkUI_AttributeItem Defines the setAttribute function. This is a general input parameter struct. Individual attribute-setting APIs can use appropriate member variables within it to store parameter data of specific types.
Since: 12
Related module: ArkUI_NativeModule
Header file: native_node.h
| Name | Description |
|---|---|
| const ArkUI_NumberValue* value | Pointer to the numeric array used to store attribute parameters of the numeric type. The array length is specified by size. |
| int32_t size | Length of the value array, which must be used together with the value variable. |
| const char* string | Pointer to the string used to store attribute parameters of the string type. |
| void* object | Pointer to the object data used to store attribute parameters of the object type. |