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
Copy file name to clipboardExpand all lines: articles/communication-services/how-tos/ui-library-sdk/includes/data-model/android.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,28 +18,28 @@ The UI Library gives developers the ability to provide a more customized experie
18
18
19
19
#### Local Participant View Data
20
20
21
-
`ParticipantViewData` is a class that set the `renderedDisplayName`, `avatarBitmap` and `scaleType` for avatar control. This class is passed to the configuration in order to customize the local participants view information.
21
+
`CallCompositeParticipantViewData` is a class that set the `displayName`, `avatarBitmap` and `scaleType` for avatar control. This class is passed to the `CallCompositeLocalOptions` in order to customize the local participants view information.
22
22
23
-
This class is held in the `LocalSettings` object that represents options used locally on the device making the call.
23
+
This class is held in the `CallCompositeLocalOptions` object that represents options used locally on the device making the call.
24
24
25
-
`renderedDisplayName` differs from the `displayName` passed in via the `TeamsMeetingOptions` and `GroupCallOptions` in that it is only used locally as an override, where `displayName` is passed to the server and shared with other participants. When `renderedDisplayName`is not provided, `displayName` is used.
25
+
`displayName` differs from the `displayName` passed in via the `CallCompositeRemoteOptions`. `CallCompositeParticipantViewData``displayName`is only used locally as an override, where `CallCompositeRemoteOptions``displayName` is passed to the server and shared with other participants. When `CallCompositeParticipantViewData``displayName`is not provided,`CallCompositeRemoteOptions``displayName` is used.
26
26
27
27
#### Usage
28
28
29
-
To use the `LocalSettings`, pass the instance of `CallCompositeParticipantViewData` and inject `LocalSettings` to `callComposite.launch`.
29
+
To use the `CallCompositeLocalOptions`, pass the instance of `CallCompositeParticipantViewData` and inject `CallCompositeLocalOptions` to `callComposite.launch`.
30
30
31
31
#### [Kotlin](#tab/kotlin)
32
32
33
33
```kotlin
34
-
val viewData =CallCompositeParticipantViewData("LocalUserDisplayName") //bitmap is optional
34
+
val viewData =CallCompositeParticipantViewData().setDisplayName("displayName") //setAvatarBitmap for bitmap
35
35
val localOptions =CallCompositeLocalOptions(viewData)
In some instances, you may wish to provide local overrides for remote participants to allow custom avatars and titles.
55
55
56
-
The process is similar to the local participant process, however the data is set when participants join the call. As a developer you would need to add a listener to when remote participants join the call, and then call a method to set the ParticipantViewData for that remote user.
56
+
The process is similar to the local participant process, however the data is set when participants join the call. As a developer you would need to add a listener to when remote participants join the call, and then call a method to set the `CallCompositeParticipantViewData` for that remote user.
0 commit comments