Skip to main content

OH_CommonEvent_SetDataToSubscriber

Function OH_CommonEvent_SetDataToSubscriber 

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

Set data to an ordered event by a subscriber.

§Arguments

  • subscriber - Indicates the subscriber.

  • data - Indicates the data.

  • length - Indicates the length of data.

§Returns

  • Returns the result of operation, true means succeeded.

Available since API-level: 18