Skip to main content

OH_CommonEvent_HasKeyInParameters

Function OH_CommonEvent_HasKeyInParameters 

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

Check whether the parameters data contains a key.

§Arguments

  • para - Indicates the parameters data.

  • key - Indicates the key.

§Returns

  • Returns the result of check, true means it contains.

Available since API-level: 12