pub unsafe extern "C" fn OH_CommonEvent_UnSubscribe(
subscriber: *const CommonEvent_Subscriber,
) -> CommonEvent_ErrCodeAvailable on crate features
commonevent and api-12 only.Expand description
Unsubscribe event by a subscriber.
§Arguments
subscriber- Indicates the subscriber.
§Returns
- Returns the error code.
Returns [
COMMONEVENT_ERR_OK] if the operation is successful. Returns [COMMONEVENT_ERR_INVALID_PARAMETER] if the input parameter is invalid. Returns [COMMONEVENT_ERR_SENDING_REQUEST_FAILED] if IPC request failed to send. Returns [COMMONEVENT_ERR_INIT_UNDONE] if ces not init done.
Available since API-level: 12