Skip to main content

OH_CommonEvent_CreateSubscribeInfo

Function OH_CommonEvent_CreateSubscribeInfo 

Source
pub unsafe extern "C" fn OH_CommonEvent_CreateSubscribeInfo(
    events: *mut *const c_char,
    eventsNum: i32,
) -> *mut CommonEvent_SubscribeInfo
Available on crate features commonevent and api-12 only.
Expand description

Create subscribe information.

§Arguments

  • events - Indicates the subscribed events.

  • eventsNum - Indicates the subscribed events of number.

§Returns

  • Returns the CommonEvent_SubscribeInfo, if allocate memory failed, returns null.

Available since API-level: 12