Skip to content

Commit 721e314

Browse files
authored
Update ios.md for Events (#9)
* Update ios.md * Update ios.md
1 parent bbc4163 commit 721e314

File tree

1 file changed

+16
-8
lines changed
  • articles/communication-services/how-tos/ui-library-sdk/includes/events

1 file changed

+16
-8
lines changed

articles/communication-services/how-tos/ui-library-sdk/includes/events/ios.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,28 @@ ms.service: azure-communication-services
1010

1111
## Participant joins the call
1212

13-
We expose `addOnRemoteParticipantJoinedEventHandler` to listen if the participant joins the call.
13+
We expose `onRemoteParticipantJoined` to listen if the participant joins the call.
1414

1515
```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
1923
```
2024

2125
## Participant left the call
2226

23-
We expose `addOnRemoteParticipantLeftEventHandler` to listen if the participant leaves the call.
27+
We expose `onRemoteParticipantLeft` to listen if the participant leaves the call.
2428

2529
```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
2937
```

0 commit comments

Comments
 (0)