Composable Function

rememberNamedRemoteImageBitmap

Remembers a named RemoteImageBitmap from a lambda providing the initial ImageBitmap.

rememberNamedRemoteImageBitmap

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

Remembers a named RemoteImageBitmap from a lambda providing the initial ImageBitmap.

Parameters

name The unique name for this remote bitmap.
domain The domain of the named bitmap (defaults to RemoteState.Domain.User).
value A lambda that provides the initial ImageBitmap.

Return

A RemoteImageBitmap representing the named remote bitmap.

rememberNamedRemoteImageBitmap

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

Remembers a named RemoteImageBitmap loaded from a url.

Parameters

name unique name to identify this state within its domain
url URL of the image
domain domain for the named state, defaults to RemoteState.Domain.User

Return

a RemoteImageBitmap for the named bitmap 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: