Skip to main content

OH_CommonEvent_GetCodeFromRcvData

Function OH_CommonEvent_GetCodeFromRcvData 

Source
pub unsafe extern "C" fn OH_CommonEvent_GetCodeFromRcvData(
    rcvData: *const CommonEvent_RcvData,
) -> i32
Available on crate features commonevent and api-12 only.
Expand description

Get event code from callback data.

§Arguments

  • rcvData - Indicates the callback data.

§Returns

  • Returns the event of code, default is 0.

Available since API-level: 12