removeCallsEventListeners static method
To remove CometChatCallsEventsListener listener
We recommend you remove the listener once the activity or fragment is not in use. Typically, this can be added in the dispose() method.
Implementation
static removeCallsEventListeners(String listenerId) {
callsEventsListener.remove(listenerId);
}