OH_ArkUI_NodeUtils_AddCustomProperty

Function OH_ArkUI_NodeUtils_AddCustomProperty 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeUtils_AddCustomProperty(
    node: ArkUI_NodeHandle,
    name: *const c_char,
    value: *const c_char,
)
Available on crate features api-12 and api-13 only.
Expand description

Add the custom property of the component. This interface only works on the main thread.

ยงArguments

  • node - ArkUI_NodeHandle pointer.

  • name - The name of the custom property. Passing null pointers is not allowed.

  • value - The value of the custom property. Passing null pointers is not allowed.

Available since API-level: 13