Object

RemoteCardDefaults

Contains the default values used by RemoteCard

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public object RemoteCardDefaults

Contains the default values used by RemoteCard

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.