ConsolidatedAttribution

fun ConsolidatedAttribution(modifier: <Error class: unknown class> = Modifier, contentPadding: <Error class: unknown class> = PaddingValues(8.dp), alignment: <Error class: unknown class> = Alignment.BottomStart, collapsedStyle: ConsolidatedAttributionCollapsedStyle = ConsolidatedAttributionCollapsedStyle.ICON_AND_WORDMARK, material: ConsolidatedAttributionMaterial = ConsolidatedAttributionMaterial.SOLID, tintColor: <Error class: unknown class> = Color.Transparent, introExpansion: ConsolidatedAttributionIntroExpansion = ConsolidatedAttributionIntroExpansion.ONCE, attributionDialogManager: AttributionDialogManager? = null)

Add the experimental consolidated attribution ornament to the map.

A single pill with the Mapbox logo and the data attributions. It expands once on first launch, then collapses after a few seconds or on map interaction. It replaces the Attribution and Logo ornaments, so leave the logo slot empty:

MapboxMap(
attribution = { ConsolidatedAttribution() },
logo = {},
) { ... }

By default the control is placed at the Alignment.BottomStart of the map with padding of 8dp.

Parameters

modifier

Modifier to be applied to the control.

contentPadding

The default padding applied to the control; paddings from modifier are applied on top of this default padding.

alignment

The alignment of the control within the Map.

collapsedStyle

How much of the control remains visible once it collapses.

material

The background material. Light and dark colors follow the night mode.

tintColor

Shifts the background toward this color's hue. Color.Transparent applies no tint.

introExpansion

How often the intro expansion plays. Use ConsolidatedAttributionIntroExpansion.EVERY_LAUNCH on shared devices.

attributionDialogManager

Custom AttributionDialogManager invoked when the control is tapped. Defaults to the SDK's attribution sheet.