Skip to content

Commit 24e9b53

Browse files
Merge pull request #268939 from chengyuanlai-msft/patch-3
[ACSCallingNativeSDK] [DataChannel] update method name
2 parents 6f08462 + aed099b commit 24e9b53

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

articles/communication-services/quickstarts/voice-video-calling/includes/data-channel/data-channel-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ dataChannelCallFeature.addOnReceiverCreatedListener(receiverCreatedListener);
7171
MessageReceivedListener messageReceivedListener = new MessageReceivedListener() {
7272
@Override
7373
public void onMessageReceived(PropertyChangedEvent e) {
74-
DataChannelMessage message = e.getReceiver().popMessage(); // read the data message from the receiver
74+
DataChannelMessage message = e.getReceiver().receiveMessage(); // read the data message from the receiver
7575
int sequence = message.getSequenceNumber(); // get the message sequence number
7676
byte[] data = message.getData(); // get the data content
7777
}

articles/communication-services/quickstarts/voice-video-calling/includes/data-channel/data-channel-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class FeatureDelegate: NSObject, DataChannelCallFeatureDelegate {
6666

6767
class ReceiverDelegate: NSObject, DataChannelReceiverDelegate {
6868
func onMessageReceived(_ dataChannelReceiver: DataChannelReceiver, didReceiveMessage args: PropertyChangedEventArgs) {
69-
let message = dataChannelReceiver.popMessage() // read the data message from the receiver
69+
let message = dataChannelReceiver.receiveMessage() // read the data message from the receiver
7070
let sequence = message?.sequenceNumber // get the message sequence number
7171
let data = message?.data // get the data content
7272
}

articles/communication-services/quickstarts/voice-video-calling/includes/data-channel/data-channel-windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ dataChannelCallFeature.ReceiverCreated += DataChannelReceiverCreatedHandler;
7070
```csharp
7171
void MessageReceivedHandler(object sender, PropertyChangedEventArgs args)
7272
{
73-
DataChannelMessage message = (sender as DataChannelReceiver).PopMessage(); // read the data message from the receiver
73+
DataChannelMessage message = (sender as DataChannelReceiver).ReceiveMessage(); // read the data message from the receiver
7474
long sequence = message.SequenceNumber; // get the message sequence number
7575
byte[] data = message.Data; // get the data content
7676
}

0 commit comments

Comments
 (0)