Skip to main content

OH_CommonEvent_GetCharArrayFromParameters

Function OH_CommonEvent_GetCharArrayFromParameters 

Source
pub unsafe extern "C" fn OH_CommonEvent_GetCharArrayFromParameters(
    para: *const CommonEvent_Parameters,
    key: *const c_char,
    array: *mut *mut c_char,
) -> i32
Available on crate features commonevent and api-12 only.
Expand description

Get char array data from parameters data by key.

§Arguments

  • para - Indicates the parameters data.

  • key - Indicates the key.

  • array - Indicates the char array.

§Returns

  • Returns the length of the array.

Available since API-level: 12