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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,7 +191,7 @@ To ensure a consistent call experience, we recommend that you integrate Fluent U
191
191
-**User testing**: Conduct user testing to ensure that the customizations meet user needs and don't confuse or overwhelm them.
192
192
-**Feedback mechanism**: Adding buttons like **Report Issue** ensure that a robust back-end system is available to handle the feedback collected. Reuse the [mechanism that UI Library provides by default](../../../tutorials/collecting-user-feedback/collecting-user-feedback.md).
193
193
194
-
For more information, see [Customize the button bar](../../../how-tos/ui-library-sdk/button-injection.md).
194
+
For more information, see [Customize buttons](../../../how-tos/ui-library-sdk/button-injection.md).
Copy file name to clipboardExpand all lines: articles/communication-services/how-tos/ui-library-sdk/button-injection.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@ ms.date: 08/01/2024
12
12
ms.custom: template-how-to
13
13
zone_pivot_groups: acs-plat-ios-android
14
14
15
-
#Customer intent: As a developer, I want to customize the button bar actions in the UI Library.
15
+
#Customer intent: As a developer, I want to customize button actions in the UI Library.
16
16
---
17
17
18
-
# Customize the button bar
18
+
# Customize buttons
19
19
20
20
To implement custom actions or modify the current button layout, you can interact with the Native UI Library's API. This API involves defining custom button configurations, specifying actions, and managing the button bar's current actions. The API provides methods for adding custom actions, and removing existing buttons, all of which are accessible via straightforward function calls.
`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 `visible` or `enabled` to `false` for the `CallCompositeButtonViewData` to hide or disable button.
13
+
`CallCompositeCallScreenControlBarOptions`, allow the flexibility to customize buttons 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 `visible` or `enabled` to `false` for the `CallCompositeButtonViewData` to hide or disable button.
14
14
15
15
:::image type="content" source="../../media/remove-button-experience.png" alt-text="Screenshot that shows the experience removing buttons in the UI Library.":::
16
16
@@ -78,6 +78,22 @@ cameraButton.setVisible(true);
78
78
79
79
#### [Kotlin](#tab/kotlin)
80
80
```kotlin
81
+
82
+
// Custom header button
83
+
val headerCustomButton =
84
+
CallCompositeCustomButtonViewData(
85
+
"headerCustomButton",
86
+
R.drawable.my_header_button_icon,
87
+
"My header button",
88
+
fun(it:CallCompositeCustomButtonClickEvent) {
89
+
// process my button onClick
90
+
}
91
+
)
92
+
93
+
val headerOptions =CallCompositeCallScreenHeaderViewData()
94
+
.setCustomButtons(listOf(headerCustomButton))
95
+
96
+
// Custom control bar button
81
97
val controlBarOptions =CallCompositeCallScreenControlBarOptions()
`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 `visible` or `enabled` to `false` for the `ButtonViewData` to hide or disable button.
14
+
`CallScreenControlBarOptions`, allow the flexibility to customize buttons 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 `visible` or `enabled` to `false` for the `ButtonViewData` to hide or disable button.
15
15
16
16
:::image type="content" source="../../media/remove-button-experience.png" alt-text="Screenshot that shows the experience removing buttons in the UI Library.":::
17
17
@@ -42,16 +42,28 @@ cameraButton.visible = true
42
42
:::image type="content" source="../../media/add-button-experience.png" alt-text="Screenshot that shows the experienc when you add a new button the UI Library.":::
43
43
44
44
```swift
45
+
// Custom header button
46
+
let headerCustomButton =CustomButtonViewData(image: UIImage(named: "...")!,
47
+
title: "My header button") {_in
48
+
// Process my button onClick
49
+
}
50
+
let callScreenHeaderViewData =CallScreenHeaderViewData(
51
+
customButtons: [headerCustomButton]
52
+
)
53
+
54
+
// Custom control bar button
45
55
let customButton =CustomButtonViewData(image: UIImage(named: "...")!,
46
-
title: "My button") {_in
56
+
title: "My button") {_in
47
57
// Process my button onClick
48
58
}
49
59
50
60
let callScreenControlBarOptions =CallScreenControlBarOptions(
51
61
customButtons: [customButton]
52
62
)
53
63
54
-
let callScreenOptions =CallScreenOptions(controlBarOptions: callScreenControlBarOptions)
0 commit comments