rememberNamedRemoteInt

Functions summary

RemoteInt
@Composable
@RemoteComposable
rememberNamedRemoteInt(
    name: String,
    defaultValue: Int,
    domain: RemoteState.Domain
)

Remembers a named remote integer expression.

Functions

@Composable
@RemoteComposable
fun rememberNamedRemoteInt(
    name: String,
    defaultValue: Int,
    domain: RemoteState.Domain = RemoteState.Domain.User
): RemoteInt

Remembers a named remote integer expression.

Parameters
name: String

A unique name to identify this state within its domain.

defaultValue: Int

The initial Int value.

domain: RemoteState.Domain = RemoteState.Domain.User

The domain for the named state. Defaults to RemoteState.Domain.User.

Returns
RemoteInt

A RemoteInt instance representing the named expression.