OH_ArkUI_NodeCustomEvent_GetCustomSpanDrawInfo

Function OH_ArkUI_NodeCustomEvent_GetCustomSpanDrawInfo 

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

Obtains the drawing information of a custom span through a custom component event.

§Arguments

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

  • info - Indicates the drawing information to obtain.

§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