OH_ArkUI_NodeCustomEvent_SetCustomSpanMetrics

Function OH_ArkUI_NodeCustomEvent_SetCustomSpanMetrics 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeCustomEvent_SetCustomSpanMetrics(
    event: *mut ArkUI_NodeCustomEvent,
    metrics: *mut ArkUI_CustomSpanMetrics,
) -> i32
Available on crate feature api-12 only.
Expand description

Sets the measurement metrics of a custom span through a custom component event.

§Arguments

  • event - Indicates the pointer to the custom component event.

  • metrics - Indicates the measurement metrics to set.

§Returns

  • Returns the result code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.
    Possible causes: Parameter verification failed, the parameter should not be nullptr.

Available since API-level: 12