pub unsafe extern "C" fn OH_CommonEvent_SetPublishInfoCode(
info: *mut CommonEvent_PublishInfo,
code: i32,
) -> CommonEvent_ErrCodeAvailable on crate features
commonevent and api-12 and api-18 only.Expand description
Set the code of publish information.
§Arguments
-
info- Indicates the publish information. -
code- Indicates the code.
§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: 18