Composable Function

rememberNamedRemoteColor

Remembers a named RemoteColor initialized with defaultValue.

rememberNamedRemoteColor

Source set: JvmAndAndroid
@Composable
public fun rememberNamedRemoteColor(
    name: String,
    defaultValue: RemoteColor,
    domain: RemoteState.Domain = RemoteState.Domain.User,
): RemoteColor

Remembers a named RemoteColor initialized with defaultValue.

Parameters

name unique name identifying this state within its domain
defaultValue initial RemoteColor constant or expression
domain domain for the named state, defaulting to RemoteState.Domain.User

Return

RemoteColor bound to the named color state

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: