Composable Function

rememberNamedRemoteImageBitmap

Remembers a named RemoteImageBitmap initialized by value.

rememberNamedRemoteImageBitmap

Source set: Android
@Composable
public fun rememberNamedRemoteImageBitmap(
    name: String,
    domain: RemoteState.Domain = RemoteState.Domain.User,
    value: () -> ImageBitmap,
): RemoteImageBitmap

Remembers a named RemoteImageBitmap initialized by value.

Parameters

name unique name identifying this state within its domain
domain domain for the named state, defaulting to RemoteState.Domain.User
value lambda providing the initial ImageBitmap value

Return

RemoteImageBitmap bound to the named bitmap state

rememberNamedRemoteImageBitmap

Source set: JvmAndAndroid
@Composable
public fun rememberNamedRemoteImageBitmap(
    name: String,
    url: String,
    domain: RemoteState.Domain = RemoteState.Domain.User,
): RemoteImageBitmap

Remembers a named RemoteImageBitmap loaded from url.

Parameters

name unique name identifying this state within its domain
url URL where the bitmap can be fetched
domain domain for the named state, defaulting to RemoteState.Domain.User

Return

RemoteImageBitmap bound to the named bitmap state loaded from url

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: