Skip to main content

OH_CommonEvent_GetCharFromParameters

Function OH_CommonEvent_GetCharFromParameters 

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

Get char data from parameters data by key.

§Arguments

  • para - Indicates the parameters data.

  • key - Indicates the key.

  • defaultValue - Indicates default return value.

§Returns

  • Returns the char data of the key in the parameters.

Available since API-level: 12