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
| :::image type="content" source="../../media/mobile-ui/android-color.png" alt-text="Screenshot that shows Android theming for a caller experience."::: | :::image type="content" source="../../media/mobile-ui/ios-dark.png" alt-text="Screenshot that shows iOS theming for a caller experience."::: |
83
84
85
+
### Button bar customization
86
+
87
+
The functionality allows developers to add new actions into the contextual menu or remove current buttons in the button bar, providing the flexibility to introduce custom actions and tailor the user interface according to specific application needs.
88
+
89
+
- Add Custom Buttons: Developers can introduce new buttons into the contextual button bar to trigger custom actions.
90
+
- Remove Existing Buttons: Unnecessary default buttons can be removed to streamline the interface: camera, microphone o audio selection.
91
+
92
+
Consider the following constraints during the implementation of this feature:
93
+
94
+
- Icons and Labels: Icons are added only for new actions. The button bar icons keep the predefined icon, labels should be concise to fit the menu dimension.
95
+
- Accessibility Considerations: Developers should ensure that all custom buttons are accessible, including appropriate labeling for screen readers.
96
+
97
+
|Remove buttons | Add custom actions|
98
+
|------------- | ------------------|
99
+
| :::image type="content" source="media/ui-library-remove-button.png" alt-text="Screenshot that demonstrates the remove button on the bottom bar."::: | :::image type="content" source="media/ui-library-add-action-button.png" alt-text="Screenshot that demonstrates add custom action into the contextual menu."::: |
100
+
101
+
#### Use Cases
102
+
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
+
- 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
+
106
+
#### Best Practices
107
+
108
+
- Minimalism: Avoid overcrowding the contextual menu bar. Only add buttons that are essential for the user experience.
109
+
- User Testing: Conduct user testing to ensure the customizations meets user needs and don't confuse or overwhelm them.
110
+
- Add a Feedback Mechanism: If adding buttons for actions like "Report Issue," ensure there's a robust backend system to handle the feedback collected, you can re use the [mechanism that UI Library provide by default](../../../tutorials/collecting-user-feedback/collecting-user-feedback.md).
111
+
112
+
For more information, see [How to customize the button bar](../../../how-tos/ui-library-sdk/button-injection.md).
113
+
84
114
### Screen size
85
115
86
116
You can adapt the Azure Communication Services call composite to adapt to screen sizes from 5 inches to tablet size. Use split mode and tablet mode in the call composite to get the dynamic participants' roster layout, provide clarity on the view, and focus on the conversation.
title:Customize the actions from the button bar in the UI Library
3
+
titleSuffix: An Azure Communication Services how-to guide
4
+
description: Customize the actions from the button bar in the Azure Communication Services UI Library.
5
+
author: garchiro7
6
+
ms.author: jorgegarc
7
+
ms.service: azure-communication-services
8
+
ms.subservice: calling
9
+
ms.topic: how-to
10
+
ms.date: 08/01/2024
11
+
ms.custom: template-how-to
12
+
zone_pivot_groups: acs-plat-ios-android
13
+
14
+
#Customer intent: As a developer, I want to customize the button bar actions in the UI Library.
15
+
---
16
+
17
+
# Customize the button bar
18
+
19
+
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.
20
+
21
+
This functionality provides a high degree of customization, and ensures that the user interface remains cohesive and consistent with the application's overall design.
22
+
23
+
## Prerequisites
24
+
25
+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
26
+
- A deployed Communication Services resource. [Create a Communication Services resource](../../quickstarts/create-communication-resource.md).
27
+
- A user access token to enable the call client. [Get a user access token](../../quickstarts/access-tokens.md).
28
+
- Optional: Completion of the [quickstart for getting started with the UI Library composites](../../quickstarts/ui-library/get-started-composites.md).
29
+
30
+
## Set up the feature
31
+
32
+
::: zone pivot="platform-android"
33
+
[!INCLUDE [Customize the actions from the button bar in the Android UI Library](./includes/button-injection/android.md)]
34
+
::: zone-end
35
+
36
+
::: zone pivot="platform-ios"
37
+
[!INCLUDE [DCustomize the actions from the button bar in the iOS UI Library](./includes/button-injection/ios.md)]
38
+
::: zone-end
39
+
40
+
## Next steps
41
+
42
+
-[Learn more about the UI Library](../../concepts/ui-library/ui-library-overview.md)
0 commit comments