Composable Function

rememberNamedRemoteFloat

Remembers a named RemoteFloat initialized with defaultValue.

rememberNamedRemoteFloat

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

Remembers a named RemoteFloat initialized with defaultValue.

Parameters

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

Return

RemoteFloat bound to the named float 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: