Source set: Android
public class MutableRemoteImageBitmap
internal constructor(
constantValueOrNull: ImageBitmap?,
cacheKey: RemoteStateCacheKey?,
private val idProvider: (creationState: RemoteComposeCreationState) -> Int,
) :
RemoteImageBitmap(constantValueOrNull, cacheKey ?: RemoteStateInstanceKey()),
MutableRemoteState<ImageBitmap>
A mutable implementation of RemoteImageBitmap that holds its value in a [MutableState
Companion Object
Methods
Source set: Android
public operator fun invoke(initialValue: ImageBitmap): MutableRemoteImageBitmap
Creates a new mutable state (allocates an ID).
Parameters
| initialValue | The initial value for the state. |
Returns
| A new MutableRemoteImageBitmap instance. |