Compose Unstyled 2.0 is out! Check the official announcement blog ->
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].

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.

Last updated: