MainAction

@Immutable
sealed interface MainAction

Known direct subclasses
MainAction.Call

Standard main action that calls the place's phone number.

MainAction.Custom

Fully custom main action button.

MainAction.OpenDirections

Standard main action that opens directions to the place in Google Maps.

MainAction.OpenInMaps

Standard main action that opens the place in Google Maps.

MainAction.OpenWebsite

Standard main action that opens the place's website.


Represents an action button displayed in the main body area of the Places widget.

Summary

Nested types

Standard main action that calls the place's phone number.

Fully custom main action button.

Standard main action that opens directions to the place in Google Maps.

Standard main action that opens the place in Google Maps.

Standard main action that opens the place's website.

Defines the visual prominence of a main action button.

Public properties

MainAction.Style

The visual style and prominence of this action button.

Public properties

style

val style: MainAction.Style

The visual style and prominence of this action button.