Function

mutableLongStateOf

Return a new MutableLongState initialized with the passed in value The MutableLongState class is a single value holder whose reads and writes are observed by Compose.

mutableLongStateOf

Source set: Common
public fun mutableLongStateOf(value: Long): MutableLongState

Return a new MutableLongState initialized with the passed in value

The MutableLongState class is a single value holder whose reads and writes are observed by Compose. Additionally, writes to it are transacted as part of the Snapshot system. On the JVM, values are stored in memory as the primitive long type, avoiding the autoboxing that occurs when using MutableState<Long>.

Parameters

value the initial value for the MutableLongState
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: