Skip to content

Commit 78b72de

Browse files
author
Adam Hammer
committed
update data-model/remote/local avatar/display name customization doc
1 parent 7f11f09 commit 78b72de

File tree

1 file changed

+12
-7
lines changed
  • articles/communication-services/how-tos/ui-library-sdk/includes/data-model

1 file changed

+12
-7
lines changed

articles/communication-services/how-tos/ui-library-sdk/includes/data-model/android.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ This class is held in the `LocalSettings` object that represents options used lo
2626

2727
#### Usage
2828

29-
To use the `LocalSettings`, pass the instance of `ParticipantViewData` and inject `LocalSettings` to `callComposite.launch`.
29+
To use the `LocalSettings`, pass the instance of `CallCompositeParticipantViewData` and inject `LocalSettings` to `callComposite.launch`.
3030

3131
#### [Kotlin](#tab/kotlin)
3232

3333
```kotlin
34-
val viewData = ParticipantViewData("LocalUserDisplayName") // bitmap is optional
35-
val localSettings = LocalSettings(viewData)
36-
callComposite.launch(this, options, localSettings)
34+
val viewData = CallCompositeParticipantViewData("LocalUserDisplayName") // bitmap is optional
35+
val localOptions = CallCompositeLocalOptions(viewData)
36+
callComposite.launch(this, remoteOptions, localOptions)
3737
```
3838

3939
#### [Java](#tab/java)
4040

4141
```java
42-
ParticipantViewData viewData = new ParticipantViewData("LocalUserDisplayName", bitmap); // bitmap is optional
43-
LocalSettings localSettings = new LocalSettings(viewData);
44-
callComposite.launch(this, options, localSettings);
42+
ParticipantViewData viewData = new CallCompositeParticipantViewData("LocalUserDisplayName", bitmap); // bitmap is optional
43+
CallCompositeLocalOptions localOptions = new CallCompositeLocalOptions(viewData);
44+
callComposite.launch(this, remoteOptions, localOptions);
4545
```
4646
-----
4747

@@ -59,6 +59,11 @@ The process is similar to the local participant process, however the data is set
5959

6060
To set the participant view data for remote participant, set `setOnRemoteParticipantJoinedHandler`. On remote participant join, use callComposite `setRemoteParticipantViewData` to inject view data for remote participant. The participant identifier [CommunicationIdentifier](https://azure.github.io/azure-sdk-for-android/azure-communication-common/index.html) is to uniquely identify a remote participant.
6161

62+
Calls to `setRemoteParticipantViewData` return a result of `CallCompositeSetParticipantViewDataResult` which has the following values.
63+
64+
- CallCompositeSetParticipantViewDataResult.SUCCESS
65+
- CallCompositeSetParticipantViewDataResult.PARTICIPANT_NOT_IN_CALL
66+
6267
#### [Kotlin](#tab/kotlin)
6368

6469
```kotlin

0 commit comments

Comments
 (0)