Skip to main content
Handle call session events to build responsive UIs. The SDK provides five event listener protocols to monitor session status, participant activities, media changes, button clicks, and layout changes.

Get CallSession Instance

The CallSession is a singleton that manages the active call. All event listener registrations and session control methods are accessed through this instance.
Remember to remove listeners when your view controller is deallocated to prevent memory leaks. Use removeSessionStatusListener, removeParticipantEventListener, etc.

Session Events

Monitor the call session lifecycle including join/leave events and connection status.

Participant Events

Monitor participant activities including join/leave, audio/video state, hand raise, screen sharing, and recording.

Media Events

Monitor your local media state changes including audio/video status, recording, and device changes.

Button Click Events

Intercept UI button clicks from the default call interface to add custom behavior or analytics.
Button click events fire before the SDK’s default action executes. Use these to add custom logic alongside default behavior.

Layout Events

Monitor layout changes including layout type switches and Picture-in-Picture mode transitions.

Clear All Listeners

Remove all registered listeners at once. Useful when cleaning up resources.