Skip to main content

OH_CommonEvent_SetCodeToSubscriber

Function OH_CommonEvent_SetCodeToSubscriber 

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

Set code to an ordered event by a subscriber.

§Arguments

  • subscriber - Indicates the subscriber.

  • code - Indicates the code.

§Returns

  • Returns the result of operation, true means succeeded.

Available since API-level: 18