Composable Function

rememberNamedRemoteInt

Remembers a named remote integer expression.

rememberNamedRemoteInt

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

Remembers a named remote integer expression.

Parameters

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

Return

A RemoteInt 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: