Skip to main content

OH_CommonEvent_GetCodeFromSubscriber

Function OH_CommonEvent_GetCodeFromSubscriber 

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

Get code from an ordered event by a subscriber.

§Arguments

  • subscriber - Indicates the subscriber.

§Returns

  • Returns the code, default is 0.

Available since API-level: 18