Skip to main content

OH_CommonEvent_GetDataFromSubscriber

Function OH_CommonEvent_GetDataFromSubscriber 

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

Get data from an ordered event by a subscriber.

§Arguments

  • subscriber - Indicates the subscriber.

§Returns

  • Returns the data, default is null.

Available since API-level: 18