Composable Function

rememberNamedRemoteBoolean

Remembers a named remote boolean expression.

rememberNamedRemoteBoolean

Source set: JvmAndAndroid
@Composable
public fun rememberNamedRemoteBoolean(
    name: String,
    initialValue: Boolean,
    domain: RemoteState.Domain = RemoteState.Domain.User,
): RemoteBoolean

Remembers a named remote boolean expression.

Parameters

name A unique name to identify this state within its domain.
initialValue The initial Boolean value.
domain The domain for the named state. Defaults to RemoteState.Domain.User.

Return

A RemoteBoolean instance representing the named expression.

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: