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/concepts/ui-library/includes/mobile-ui-use-cases.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,8 @@ Consider the following constraints during the implementation of this feature:
103
103
- Custom In-Call Actions: A business application can add a custom "Report Issue" button, allowing users to directly report technical issues during a call.
104
104
- Branding and User Experience: An enterprise app can remove buttons that are irrelevant to its use case and add branded buttons that enhance the user experience.
105
105
106
+
To ensure a consistent call experience, , we recommend that you integrate Fluent UI icons into your project; available at [Fluent UI GitHub repository](https://github.com/microsoft/fluentui-system-icons/). By doing so, your custom icons will match the design of the Call Composite, creating a cohesive and professional appearance.
107
+
106
108
#### Best Practices
107
109
108
110
- Minimalism: Avoid overcrowding the contextual menu bar. Only add buttons that are essential for the user experience.
`CallCompositeCallScreenControlBarOptions`, allow the flexibility to customize the button bar by removing specific buttons such as camera, microphone, and audio controls. This API allows you to tailor the user interface according to their specific application requirements and user experience design. Just set the visbility to `false` to hide, the default behavior is for `CallCompositeButtonOptions` object.
14
14
15
15
#### [Kotlin](#tab/kotlin)
16
16
17
17
```kotlin
18
-
TODO:Add code
18
+
val controlBarOptions =CallCompositeCallScreenControlBarOptions()
19
+
20
+
val cameraButton =CallCompositeButtonOptions()
21
+
.setVisible(false)
22
+
23
+
controlBarOptions.setCameraButton(cameraButton)
24
+
25
+
val callScreenOptions =CallCompositeCallScreenOptions()
`Call composite` is using Fluent UI icons, you can download the icons directly from [the Fluent UI GitHub repository](https://github.com/microsoft/fluentui-system-icons/) and incorporate them into your project as needed. This approach guarantees visual consistency across all user interface elements, enhancing the overall user experience.
31
63
32
64
#### [Kotlin](#tab/kotlin)
33
65
34
66
```kotlin
35
-
TODO:Add code
67
+
val controlBarOptions =CallCompositeCallScreenControlBarOptions()
68
+
69
+
controlBarOptions.setCustomButtons(
70
+
listOf(
71
+
CallCompositeCustomButtonOptions(
72
+
R.drawable.my_button_image,
73
+
"My button",
74
+
fun(it:CallCompositeCustomButtonClickEvent) {
75
+
// Process my button onClick
76
+
},
77
+
)
78
+
)
79
+
)
80
+
81
+
val callScreenOptions =CallCompositeCallScreenOptions()
`CallScreenControlBarOptions`, allow the flexibility to customize the button bar by removing specific buttons such as camera, microphone, and audio controls. This API allows you to tailor the user interface according to their specific application requirements and user experience design. Just set the visbility to `false` to hide, the default behavior is for `ButtonOptions` object.
15
15
16
16
```swift
17
-
TODO: Add code
17
+
let cameraButton =ButtonOptions(visible: false)
18
+
19
+
let callScreenControlBarOptions =CallScreenControlBarOptions(
20
+
cameraButton: cameraButton
21
+
)
22
+
23
+
let callScreenOptions =CallScreenOptions(controlBarOptions: callScreenControlBarOptions)
24
+
let localOptions =LocalOptions(callScreenOptions: callScreenOptions)
25
+
26
+
let callComposite =CallComposite(credential: credential)
`Call composite` is using Fluent UI icons, you can download the icons directly from [the Fluent UI GitHub repository](https://github.com/microsoft/fluentui-system-icons/) and incorporate them into your project as needed. This approach guarantees visual consistency across all user interface elements, enhancing the overall user experience.
23
33
24
34
```swift
25
-
TODO: Add code
35
+
let customButton =CustomButtonOptions(image: UIImage(named: "...")!,
36
+
title: "My button") {_in
37
+
// Process my button onClick
38
+
}
39
+
40
+
let callScreenControlBarOptions =CallScreenControlBarOptions(
41
+
customButtons: [customButton]
42
+
)
43
+
44
+
let callScreenOptions =CallScreenOptions(controlBarOptions: callScreenControlBarOptions)
45
+
let localOptions =LocalOptions(callScreenOptions: callScreenOptions)
46
+
47
+
let callComposite =CallComposite(credential: credential)
0 commit comments