Class

MutableRemoteBitmap

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public class MutableRemoteBitmap
internal constructor(
    constantValueOrNull: ImageBitmap?,
    cacheKey: RemoteStateCacheKey?,
    private val idProvider: (creationState: RemoteComposeCreationState) -> Int,
) : RemoteBitmap(constantValueOrNull), MutableRemoteState<ImageBitmap>

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

Companion Object

Methods

createMutable

Android
public fun createMutable(initialValue: ImageBitmap): MutableRemoteBitmap

Creates a new mutable state (allocates an ID).

Parameters

initialValue The initial value for the state.

Returns

A new MutableRemoteBitmap instance.