Compose Component

IconMarker

Renders a clickable icon marker (a dot IconMarkerDefaults.DotIcon by default) for anchoring to real-world objects.

IconMarker

Source set: Android
@Composable
public fun IconMarker(
    onClick: () -> Unit,
    contentDescription: String,
    modifier: Modifier = Modifier,
    size: IconMarkerSize = IconMarkerSize.Medium,
    color: Color = GlimmerTheme.colors.surface,
    contentColor: Color = IconMarkerDefaults.contentColor(color),
    contentPadding: PaddingValues = IconMarkerDefaults.contentPadding(size),
    interactionSource: MutableInteractionSource? = null,
    content: @Composable () -> Unit = { IconMarkerDefaults.DotIcon() },
)

Parameters

onClick called when this marker is clicked.
contentDescription text used by accessibility services to describe a real-world object this marker is anchored to. This text should be localized. It will be merged with content description of the content so the latter one should be omitted.
modifier the Modifier to be applied to this layout
size the IconMarkerSize variant of the marker
color background Color of the interactive surface
contentColor Color applied to content
contentPadding internal padding between the surface and content
interactionSource an optional hoisted MutableInteractionSource for observing and emitting interactions for this marker. Note that if null is provided, interactions will still happen internally
content the marker content to display inside the surface. By default, this is a dot IconMarkerDefaults.DotIcon, but can be customized with an Icon. Size of the icon depends on the provided size.

IconMarker

Source set: Android
@Composable
public fun IconMarker(
    contentDescription: String,
    modifier: Modifier = Modifier,
    size: IconMarkerSize = IconMarkerSize.Medium,
    contentColor: Color = IconMarkerDefaults.contentColor(),
    contentPadding: PaddingValues = IconMarkerDefaults.contentPadding(size),
    content: @Composable () -> Unit = { IconMarkerDefaults.DotIcon() },
)

Parameters

contentDescription text used by accessibility services to describe a real-world object this marker is anchored to. This text should be localized. It will be merged with content description of the content so the latter one should be omitted.
modifier the Modifier to be applied to this layout
size the IconMarkerSize variant of the marker
contentColor Color applied to content
contentPadding internal padding applied around content
content the marker content to display inside the surface. By default, this is a dot IconMarkerDefaults.DotIcon, but can be customized with an Icon. Size of the icon depends on the provided size.

Content updated: