Skip to main content

OH_CommonEvent_GetIntFromParameters

Function OH_CommonEvent_GetIntFromParameters 

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

Get int data from parameters data by key.

§Arguments

  • para - Indicates the parameters data.

  • key - Indicates the key.

  • defaultValue - Indicates default return value.

§Returns

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

Available since API-level: 12