*/
+ /**
+ * Add on captions received event handler {@link CallCompositeEventHandler}.
+ *
+ *
+ *
+ * // add on captions received event handler
+ * callComposite.addOnCaptionsReceivedEventHandler(event -> {
+ * // Process captions received event
+ * System.out.println(event.getSpeakerName());
+ * System.out.println(event.getCaptionText());
+ * System.out.println(event.getIsFinal());
+ * });
+ *
+ *
+ *
+ * @param handler The {@link CallCompositeEventHandler}.
+ */
+ public void addOnCaptionsReceivedEventHandler(
+ final CallCompositeEventHandler handler) {
+ configuration.getCallCompositeEventsHandler().addOnCaptionsReceivedEventHandler(handler);
+ }
+
+ /**
+ * Remove on captions received event handler {@link CallCompositeEventHandler}.
+ *
+ * @param handler The {@link CallCompositeEventHandler}.
+ */
+ public void removeOnCaptionsReceivedEventHandler(
+ final CallCompositeEventHandler handler) {
+ configuration.getCallCompositeEventsHandler().removeOnCaptionsReceivedEventHandler(handler);
+ }
+ /* */
+
/**
* Set {@link CallCompositeParticipantViewData}.
*
diff --git a/azure-communication-ui/calling/src/main/java/com/azure/android/communication/ui/calling/configuration/events/CallCompositeEventsHandler.kt b/azure-communication-ui/calling/src/main/java/com/azure/android/communication/ui/calling/configuration/events/CallCompositeEventsHandler.kt
index 144a527b30..af17fe3525 100644
--- a/azure-communication-ui/calling/src/main/java/com/azure/android/communication/ui/calling/configuration/events/CallCompositeEventsHandler.kt
+++ b/azure-communication-ui/calling/src/main/java/com/azure/android/communication/ui/calling/configuration/events/CallCompositeEventsHandler.kt
@@ -3,17 +3,21 @@
package com.azure.android.communication.ui.calling.configuration.events
+
import com.azure.android.communication.ui.calling.CallCompositeEventHandler
+import com.azure.android.communication.ui.calling.models.CallCompositeAudioSelectionChangedEvent
import com.azure.android.communication.ui.calling.models.CallCompositeCallStateChangedEvent
-import com.azure.android.communication.ui.calling.models.CallCompositeErrorEvent
-import com.azure.android.communication.ui.calling.models.CallCompositePictureInPictureChangedEvent
+/*