Skip to main content

OH_CommonEvent_SetPublisherBundleName

Function OH_CommonEvent_SetPublisherBundleName 

Source
pub unsafe extern "C" fn OH_CommonEvent_SetPublisherBundleName(
    info: *mut CommonEvent_SubscribeInfo,
    bundleName: *const c_char,
) -> CommonEvent_ErrCode
Available on crate features commonevent and api-12 only.
Expand description

Set the bundleName of the subscribe information.

§Arguments

  • info - Indicates the subscribed events.

  • bundleName - Indicates the bundleName.

§Returns

  • Returns the error code. Returns [COMMONEVENT_ERR_OK] if the operation is successful. Returns [COMMONEVENT_ERR_INVALID_PARAMETER] if a parameter error occurs.

Available since API-level: 12