Skip to main content

OH_CommonEvent_SetLongArrayToParameters

Function OH_CommonEvent_SetLongArrayToParameters 

Source
pub unsafe extern "C" fn OH_CommonEvent_SetLongArrayToParameters(
    param: *mut CommonEvent_Parameters,
    key: *const c_char,
    value: *const c_long,
    num: usize,
) -> CommonEvent_ErrCode
Available on crate features commonevent and api-12 and api-18 only.
Expand description

Set long array data to parameters data by key.

§Arguments

  • param - Indicates the parameters data.

  • key - Indicates the key.

  • value - Indicates the long array data.

  • num - Indicates the length of the array.

§Returns

  • Returns the error code. Returns [COMMONEVENT_ERR_OK] if the operation is successful. Returns [COMMONEVENT_ERR_INVALID_PARAMETER] if a parameter error occurs. Returns [COMMONEVENT_ERR_ALLOC_MEMORY_FAILED] if a memory allocation error occurs.

Available since API-level: 18