OH_ArkUI_NodeEvent_GetNumberValue

Function OH_ArkUI_NodeEvent_GetNumberValue 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeEvent_GetNumberValue(
    event: *mut ArkUI_NodeEvent,
    index: i32,
    value: *mut ArkUI_NumberValue,
) -> i32
Available on crate feature api-12 only.
Expand description

Obtains the numeric-type parameter of a component event.

§Arguments

  • event - Indicates the pointer to the component event.

  • index - Indicates the index of the return value.

  • value - Indicates the return value.

§Returns

  • Returns the error code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_NODE_EVENT_PARAM_INDEX_OUT_OF_RANGE] if the parameter length exceeds the limit. Returns [ARKUI_ERROR_CODE_NODE_EVENT_PARAM_INVALID] if the data does not exist in the component event.

Available since API-level: 12