OH_ArkUI_NodeUtils_GetCustomProperty

Function OH_ArkUI_NodeUtils_GetCustomProperty 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeUtils_GetCustomProperty(
    node: ArkUI_NodeHandle,
    name: *const c_char,
    handle: *mut *mut ArkUI_CustomProperty,
) -> i32
Available on crate features api-12 and api-14 only.
Expand description

Get the value of the custom property of the component.

§Arguments

  • node - ArkUI-NodeHandle pointer.

  • name - The name of the custom attribute.

  • handle - The structure of the custom attribute corresponding to the key parameter name obtained.

§Returns

  • Error code. [ARKUI_ERROR_CODE_NO_ERROR] success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception.

Available since API-level: 14