Composable Function

rememberNamedRemoteColor

Remembers a named remote color expression.

rememberNamedRemoteColor

Source set: 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.

Last updated: