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
Add setContentDescription API to AttributionPlugin for accessibility (#4896)
Fixes https://mapbox.atlassian.net/browse/MAPSAND-2183
* Add setContentDescription() method to AttributionPlugin and
AttributionView interfaces with default implementations for backward
compatibility
* Implement setContentDescription() in AttributionPluginImpl and
AttributionViewImpl to support programmatic accessibility content
description setting
* Set default content description "Powered by Mapbox Maps" for
attribution button to improve screen reader experience
cc @mapbox/maps-android
GitOrigin-RevId: 223903afed0e3e84ca2b266e112d301324dda800
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,9 @@
3
3
Mapbox welcomes participation and contributions from everyone.
4
4
5
5
# main
6
+
# 11.14.0-rc.1
7
+
## Features ✨ and improvements 🏁
8
+
* Added `setContentDescription()` method to `AttributionPlugin` and `AttributionView` interfaces to programmatically set accessibility content description for the attribution button.
Copy file name to clipboardExpand all lines: sdk-base/api/sdk-base.api
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1790,6 +1790,7 @@ public final class com/mapbox/maps/plugin/attribution/AttributionParserConfig {
1790
1790
1791
1791
public abstract interface class com/mapbox/maps/plugin/attribution/AttributionPlugin : com/mapbox/maps/plugin/LifecyclePlugin, com/mapbox/maps/plugin/ViewPlugin, com/mapbox/maps/plugin/attribution/generated/AttributionSettingsInterface {
1792
1792
public abstract fun getMapAttributionDelegate ()Lcom/mapbox/maps/plugin/delegates/MapAttributionDelegate;
1793
+
public abstract fun setContentDescription (Ljava/lang/CharSequence;)V
1793
1794
public abstract fun setCustomAttributionDialogManager (Lcom/mapbox/maps/plugin/attribution/AttributionDialogManager;)V
1794
1795
}
1795
1796
@@ -1800,17 +1801,23 @@ public final class com/mapbox/maps/plugin/attribution/AttributionPlugin$DefaultI
1800
1801
public static fun onPluginView (Lcom/mapbox/maps/plugin/attribution/AttributionPlugin;Landroid/view/View;)V
1801
1802
public static fun onStart (Lcom/mapbox/maps/plugin/attribution/AttributionPlugin;)V
1802
1803
public static fun onStop (Lcom/mapbox/maps/plugin/attribution/AttributionPlugin;)V
1804
+
public static fun setContentDescription (Lcom/mapbox/maps/plugin/attribution/AttributionPlugin;Ljava/lang/CharSequence;)V
1803
1805
}
1804
1806
1805
1807
public abstract interface class com/mapbox/maps/plugin/attribution/AttributionView {
1806
1808
public abstract fun requestLayout ()V
1807
1809
public abstract fun setAttributionMargins (IIII)V
1810
+
public abstract fun setContentDescription (Ljava/lang/CharSequence;)V
1808
1811
public abstract fun setEnable (Z)V
1809
1812
public abstract fun setGravity (I)V
1810
1813
public abstract fun setIconColor (I)V
1811
1814
public abstract fun setViewOnClickListener (Landroid/view/View$OnClickListener;)V
1812
1815
}
1813
1816
1817
+
public final class com/mapbox/maps/plugin/attribution/AttributionView$DefaultImpls {
1818
+
public static fun setContentDescription (Lcom/mapbox/maps/plugin/attribution/AttributionView;Ljava/lang/CharSequence;)V
1819
+
}
1820
+
1814
1821
public abstract interface class com/mapbox/maps/plugin/attribution/OnAttributionClickListener {
0 commit comments