You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure Communication Services SDKs are dynamic and contain a lot of properties. When these change, as a developer you might want to know when and more importantly what changes. Here's how!
19
+
We recommend subscribing to Calling SDK Events. Azure Communication Services SDKs are dynamic and contain properties that might change over time. You can subscribe to these events to be notified in advance of any changes. Follow the instructions in this article to subscribe to Azure Communication Services SDK events.
When you use event listeners that are defined within the same class, bind the listener to a variable. Pass the variable in as an argument to add and remove listener methods.
31
31
32
-
If you try to pass the listener in directly as an argument, you'll lose the reference to that listener. Java is creating new instances of these listeners and not referencing previously created ones. They'll still fire off properly but can’t be removed because you won’t have a reference to them anymore.
32
+
When you use event listeners that are defined within the same class, bind the listener to a variable. To add and remove listener methods, pass the variable in as an argument.
33
33
34
+
If you try to pass the listener in directly as an argument, you lose the reference to that listener. Java is creating new instances of these listeners and not referencing previously created ones. They still fire off properly but can’t be removed because you don’t have a reference to them anymore.
The Raise Hand feature allows participants in a call to indicate that they have a question, comment, or concern without interrupting the speaker or other participants. This feature can be used in any call type, including 1:1 calls and calls with many participants, in Azure Communication Service and in Teams calls.
11
-
You first need to import calling Features from the Calling SDK:
10
+
The Raise Hand feature enables participants in a call to indicate that they have a question, comment, or concern without interrupting the speaker or other participants. You can use this feature in any call type, including 1:1 calls and calls with many participants, in Azure Communication Service and in Teams calls.
11
+
12
+
First you need to import calling Features from the Calling SDK:
This feature allows users with the Organizer and Presenter roles to lower all hands for other participants on Teams calls. In Azure Communication calls, changing the state of other participants is not allowed unless roles have been added.
36
39
37
-
To use this feature, you can use the following code:
40
+
This feature enables users with the Organizer and Presenter roles to lower all hands for other participants on Teams calls. In Azure Communication calls, you can't change the state of other participants unless adding the roles first.
41
+
42
+
To use this feature, implement the following code:
With the Raise Hand API, you can subscribe to the `RaisedHandReceived` and `LoweredHandReceived` events to handle changes in the state of participants on a call. These events are triggered by a call instance and provide information about the participant whose state has changed.
53
58
54
-
To subscribe to these events, you can use the following code:
59
+
Using the Raise Hand API, you can subscribe to the `RaisedHandReceived` and `LoweredHandReceived` events to handle changes in the state of participants on a call. The call instance triggers these events and provides information about the participant whose state changed.
60
+
61
+
To subscribe to these events, use the following code:
The `RaisedHandReceived` and `LoweredHandReceived` events contain an object with the `identifier` property, which represents the participant's communication identifier. In the example above, we log a message to the console indicating that a participant has raised their hand.
71
+
72
+
The `RaisedHandReceived` and `LoweredHandReceived` events contain an object with the `identifier` property, which represents the participant's communication identifier. In the preceding example, we log a message to the console indicating that a participant raised their hand.
64
73
65
74
To unsubscribe from the events, you can use the `off` method.
66
75
67
76
68
77
### List of all participants with active state
69
-
To get information about all participants that have raised hand state on current call, you can use the `getRaisedHands` api. he returned array is sorted by the order field.
70
-
Here's an example of how to use the `getRaisedHands` API:
78
+
79
+
To get information about all participants with raised hand state on current call, you can use `getRaisedHands`. The returned array is sorted by the order field.
The Raise Hand feature allows participants in a call to indicate that they have a question, comment, or concern without interrupting the speaker or other participants. This feature can be used in any call type, including 1:1 calls and calls with many participants, in Azure Communication Service and in Teams calls.
11
-
You first need to import calling Features from the Calling SDK:
10
+
The Raise Hand feature enables participants in a call to indicate that they have a question, comment, or concern without interrupting the speaker or other participants. You can use this feature in any call type, including 1:1 calls and calls with many participants, in Azure Communication Service and in Teams calls.
11
+
12
+
First you need to import calling Features from the Calling SDK:
12
13
13
14
```swift
14
15
importAzureCommunicationCalling
@@ -22,8 +23,10 @@ Then you can get the feature API object from the call instance:
To change the Raise Hand state for the current participant, you can use the `raiseHand()` and `lowerHand()` methods.
29
+
27
30
```swift
28
31
//publish raise hand state for local participant
29
32
raisehandFeature.raiseHand(completionHandler: { (error) in
@@ -42,9 +45,11 @@ raisehandFeature.lowerHand(completionHandler: { (error) in
42
45
```
43
46
44
47
### Lower hands for other participants
45
-
This feature allows users with the Organizer and Presenter roles to lower all hands for other participants on Teams calls. In Azure Communication calls, changing the state of other participants is not allowed unless roles have been added.
46
48
47
-
To use this feature, you can use the following code:
49
+
This feature enables users with the Organizer and Presenter roles to lower all hands for other participants on Teams calls. In Azure Communication calls, you can't change the state of other participants unless adding the roles first.
50
+
51
+
To use this feature, implement the following code:
52
+
48
53
```swift
49
54
50
55
// remove raise hand states for all participants on the call
With the Raise Hand API, you can subscribe to the `RaisedHandReceived` and `LoweredHandReceived` events to handle changes in the state of participants on a call. These events are triggered by a call instance and provide information about the participant whose state has changed.
78
82
79
-
To subscribe to these events, you can use the following code:
83
+
With the Raise Hand API, you can subscribe to the `RaisedHandReceived` and `LoweredHandReceived` events to handle changes in the state of participants on a call. The call instance triggers these events and provides information about the participant whose state changed.
84
+
85
+
To subscribe to these events, use the following code:
86
+
80
87
```swift
81
88
self.callObserver=CallObserver(view:self)
82
89
@@ -100,14 +107,18 @@ public class CallObserver : NSObject, RaiseHandCallFeatureDelegate
100
107
}
101
108
}
102
109
```
103
-
The `RaisedHandReceived` and `LoweredHandReceived` events contain an object with the `identifier` property, which represents the participant's communication identifier. In the example above, we log a message to the console indicating that a participant has raised their hand.
104
110
105
-
To unsubscribe from the events, you can use the `off` method.
111
+
The `RaisedHandReceived` and `LoweredHandReceived` events contain an object with the `identifier` property, which represents the participant's communication identifier. In the preceding example, we log a message to the console indicating that a participant raised their hand.
112
+
113
+
To unsubscribe from the events, use the `off` method.
106
114
107
115
108
116
### List of all participants with active state
109
-
To get information about all participants that have raised hand state on current call, you can use the `getRaisedHands` api. he returned array is sorted by the order field.
110
-
Here's an example of how to use the `raisedHands` API:
117
+
118
+
To get information about all participants with raised hand state on current call, you can use `getRaisedHands`. The returned array is sorted by the order field.
0 commit comments