RemoteTitleCard
Android
@RemoteComposable
@Composable
public fun RemoteTitleCard(
onClick: Action,
title: @Composable @RemoteComposable () -> Unit,
modifier: RemoteModifier = RemoteModifier,
enabled: RemoteBoolean = true.rb,
time: (@Composable @RemoteComposable () -> Unit)? = null,
subtitle: (@Composable @RemoteComposable () -> Unit)? = null,
shape: RemoteShape = RemoteCardDefaults.shape,
colors: RemoteCardColors = RemoteCardDefaults.cardColors(),
contentPadding: RemotePaddingValues = RemoteCardDefaults.ContentPadding,
content: (@Composable @RemoteComposable () -> Unit)? = null,
)
Opinionated Wear Material 3 RemoteCard that offers a specific layout to show interactive information about an application, e.g. a message.
Parameters
| onClick | Will be called when the user clicks the card |
| title | A slot for displaying the title of the card |
| modifier | Modifier to be applied to the card |
| enabled | Controls the enabled state of the card. When false, this component will not respond to user input |
| time | An optional slot for displaying the time relevant to the contents of the card |
| subtitle | An optional slot for displaying the subtitle of the card |
| shape | Defines the card's shape. |
| colors | RemoteCardColors that will be used to resolve the colors used for this card. |
| contentPadding | The spacing values to apply internally between the container and the content |
| content | The optional body content of the card. |