Composable Function

rememberNamedRemoteColor

Remembers a named remote color expression.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

rememberNamedRemoteColor

Android
@Composable
@RemoteComposable
public fun rememberNamedRemoteColor(
    name: String,
    initialValue: Color,
    domain: RemoteState.Domain = RemoteState.Domain.User,
): RemoteColor

Remembers a named remote color expression.

Parameters

name The unique name for this remote color.
domain The domain of the named color (defaults to RemoteState.Domain.User).
initialValue The initial value.

Returns

A RemoteColor representing the named remote color expression.