File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
articles/communication-services/how-tos/ui-library-sdk/includes/events Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,28 @@ ms.service: azure-communication-services
10
10
11
11
## Participant joins the call
12
12
13
- We expose ` addOnRemoteParticipantJoinedEventHandler ` to listen if the participant joins the call.
13
+ We expose ` onRemoteParticipantJoined ` to listen if the participant joins the call.
14
14
15
15
``` swift
16
-
17
-
18
-
16
+ let onRemoteParticipantJoinedHandler: ([CommunicationIdentifier]) -> Void = { [weak callComposite] ids in
17
+ guard let composite = callComposite else {
18
+ return
19
+ }
20
+ /// ids are the communication identifiers that has joined and are present in the meeting
21
+ }
22
+ callComposite.events .onRemoteParticipantJoined = onRemoteParticipantJoinedHandler
19
23
```
20
24
21
25
## Participant left the call
22
26
23
- We expose ` addOnRemoteParticipantLeftEventHandler ` to listen if the participant leaves the call.
27
+ We expose ` onRemoteParticipantLeft ` to listen if the participant leaves the call.
24
28
25
29
``` swift
26
-
27
-
28
-
30
+ let onRemoteParticipantLeftHandler: ([CommunicationIdentifier]) -> Void = { [weak callComposite] ids in
31
+ guard let composite = callComposite else {
32
+ return
33
+ }
34
+ /// ids are the communication identifiers which have left the meeting just now.
35
+ }
36
+ callComposite.events .onRemoteParticipantLeft = onRemoteParticipantLeftHandler
29
37
```
You can’t perform that action at this time.
0 commit comments