Composable Function

rememberNamedRemoteDp

Remembers a named RemoteDp initialized with defaultValue.

rememberNamedRemoteDp

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

Remembers a named RemoteDp initialized with defaultValue.

Parameters

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

Return

RemoteDp bound to the named Dp 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: