unsubscribe(eventType, subscriptionItemName, contextName)
Unsubscribes a subscription item belonging to a specific type of event.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
eventType | string | The type of event. | ✅ |
subscriptionItemName | function | The unique ID or name used to identify the subscription item. | ✅ |
contextName | string | The name of the context containing the event whose subscription item must be unsubscribed. | ❌ |
Usage example
In this example, the API unsubscribes the subscriptionItemName
item
belonging to the event of type eventType
.
PCore.getPubSubUtils().unsubscribe(eventType,subscriptionItemName);
Previous topic subscribeOnce(eventType, subscriptionItem, subscriptionItemName) Next topic APIs in the RelatedCasesApi module