Source set: Android
public class MutableRemoteLong internal constructor(
@get:Suppress("AutoBoxing") public override val constantValueOrNull: Long?,
cacheKey: RemoteStateCacheKey,
low: RemoteInt =
constantValueOrNull?.let { RemoteInt(it.toInt()) }
?: RemoteIntExpression(null, RemoteStateInstanceKey()) {
throw UnsupportedOperationException("Cannot extract low from dynamic RemoteLong")
},
high: RemoteInt =
constantValueOrNull?.let { RemoteInt((it shr 32).toInt()) }
?: RemoteIntExpression(null, RemoteStateInstanceKey()) {
throw UnsupportedOperationException("Cannot extract high from dynamic RemoteLong")
},
private val idProvider: (creationState: RemoteComposeCreationState) -> Int,
) : RemoteLong(low, high, cacheKey), MutableRemoteState<Long>
A mutable implementation of RemoteLong.
Parameters
| constantValueOrNull | A nullable value if this MutableRemoteLong is constant. |
Members
Companion
Source set: Android
public companion object
Functions
invoke
Source set: Android
public operator fun invoke(initialValue: Long): MutableRemoteLong
Creates a new mutable state (allocates an ID).
Parameters
| initialValue | The initial value for the state. |
Return
A new MutableRemoteLong instance.