Object

RemoteCardDefaults

Contains the default values used by RemoteCard

Source set: Android
public object RemoteCardDefaults

Contains the default values used by RemoteCard

Properties

OutlinedBorderSize

Source set: Android
public val OutlinedBorderSize: RemoteDp

The default size of the border for RemoteOutlinedCard

ContentPadding

Source set: Android
public val ContentPadding: RemotePaddingValues

The default content padding used by RemoteCard

AppImageSize

Source set: Android
public val AppImageSize: RemoteDp

The default size of the app icon/image when used inside a RemoteAppCard.

shape

Source set: Android
public val shape: RemoteShape

The default shape of RemoteCard, which determines its corner radius.

Height

Source set: Android
public val Height: RemoteDp

The default height of RemoteCard, RemoteAppCard and RemoteTitleCard. The card will increase its height to accommodate the contents, if necessary.

Width

Source set: Android
public val Width: RemoteDp

Functions

cardColors

@Composable
@RemoteComposable
public fun cardColors(): RemoteCardColors

Creates a RemoteCardColors that represents the default container and content colors used in a RemoteCard, RemoteAppCard or RemoteTitleCard.

cardColors

@Composable
@RemoteComposable
public fun cardColors(
    containerColor: RemoteColor? = null,
    contentColor: RemoteColor? = null,
    appNameColor: RemoteColor? = null,
    timeColor: RemoteColor? = null,
    titleColor: RemoteColor? = null,
    subtitleColor: RemoteColor? = null,
): RemoteCardColors

Creates a RemoteCardColors that represents the default container and content colors used in a RemoteCard, RemoteAppCard or RemoteTitleCard.

Parameters

containerColor the container color of this RemoteCard.
contentColor the content color of this RemoteCard.
appNameColor the color used for appName, only applies to RemoteAppCard.
timeColor the color used for time, applies to RemoteAppCard and RemoteTitleCard.
titleColor the color used for title, applies to RemoteAppCard and RemoteTitleCard.
subtitleColor the color used for subtitle, applies to RemoteTitleCard.

outlinedCardColors

@Composable
@RemoteComposable
public fun outlinedCardColors(): RemoteCardColors

Creates a RemoteCardColors that represents the default container and content colors used in an RemoteOutlinedCard, outlined RemoteAppCard or RemoteTitleCard.

outlinedCardColors

@Composable
@RemoteComposable
public fun outlinedCardColors(
    contentColor: RemoteColor? = null,
    appNameColor: RemoteColor? = null,
    timeColor: RemoteColor? = null,
    titleColor: RemoteColor? = null,
    subtitleColor: RemoteColor? = null,
): RemoteCardColors

Creates a RemoteCardColors that represents the default container and content colors used in an RemoteOutlinedCard, outlined RemoteAppCard or RemoteTitleCard.

Parameters

contentColor the content color of this RemoteOutlinedCard.
appNameColor the color used for appName, only applies to RemoteAppCard.
timeColor the color used for time, applies to RemoteAppCard and RemoteTitleCard.
titleColor the color used for title, applies to RemoteAppCard and RemoteTitleCard.
subtitleColor the color used for subtitle, applies to RemoteTitleCard.

Last updated: