Proposed Pull Request Change

author ms.service ms.topic ms.date ms.author
DaybreakQuip azure-communication-services include 06/20/2025 zehangzheng
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- author: DaybreakQuip ms.service: azure-communication-services ms.topic: include ms.date: 06/20/2025 ms.author: zehangzheng --- [!INCLUDE [Install SDK](../install-sdk/install-sdk-ios.md)] The ability to view capabilities is an extended feature of the core `Call` API. It enables you to obtain the capabilities of the local participant in the current call. The feature enables you to register for an event listener to listen for capability changes. To use the capabilities call feature for Windows, the first step is to obtain the capabilities feature API object: ## Get the capabilities feature ```swift let capabilitiesCallFeature =call.feature(Features.capabilities) ``` ## Get the capabilities of the local participant The capabilities object has the capabilities of the local participants and is of type `ParticipantCapability`. Properties of capabilities include: - *isAllowed* indicates if a capability can be used. - *reason* indicates capability resolution reason. ```swift var capabilities = capabilitiesCallFeature.capabilities ``` ## Subscribe to `capabilitiesChanged` event ```swift capabilitiesCallFeature.delegate = CapabilitiesCallDelegate() public class CapabilitiesCallDelegate : CapabilitiesCallFeatureDelegate { public func capabilitiesCallFeature(_ capabilitiesCallFeature: CapabilitiesCallFeature, didChangeCapabilities args: CapabilitiesChangedEventArgs) { let changedReason = args.reason let changedCapabilities = args.changedCapabilities } } ``` ## Capabilities Exposed - *TurnVideoOn*: Ability to turn on video - *UnmuteMicrophone*: Ability to unmute microphone - *ShareScreen*: Ability to share screen - *RemoveParticipant*: Ability to remove a participant - *HangUpForEveryone*: Ability to hang up for everyone - *AddCommunicationUser*: Ability to add a communication user - *AddTeamsUser*: Ability to add Teams User - *AddPhoneNumber*: Ability to add phone number - *ManageLobby*: Ability to manage lobby - *SpotlightParticipant*: Ability to spotlight Participant - *RemoveParticipantSpotlight*: Ability to remove Participant spotlight - *BlurBackground*: Ability to blur background - *CustomBackground*: Ability to apply a custom background - *StartLiveCaptions*: Ability to start live captions - *RaiseHand*: Ability to raise hand - *MuteOthers*: Ability to soft mute remote participants in the meeting
Success! Branch created successfully. Create Pull Request on GitHub
Error: