Class

MutableRemoteImageBitmap

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

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 MutableRemoteState<ImageBitmap>.

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.

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: