Start native apps faster with the Composables CLI ->
Class

MutableRemoteImageBitmap

A mutable implementation of RemoteImageBitmap that holds its value in a [MutableState].

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<Bitmap>.

Members

Companion

Source set: Android
public companion object

Functions

invoke

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.

Return

A new MutableRemoteImageBitmap instance.