Composables UI is out: our new component library for Compose Multiplatform ->
Composable Function

RemoteImage

A composable that lays out and draws a given RemoteImageBitmap.

RemoteImage

Source set: Android
@Composable
@RemoteComposable
public fun RemoteImage(
    remoteBitmap: RemoteImageBitmap,
    contentDescription: RemoteString?,
    modifier: RemoteModifier = RemoteModifier,
    contentScale: ContentScale = ContentScale.Fit,
    alpha: RemoteFloat = DefaultAlpha.rf,
)

A composable that lays out and draws a given RemoteImageBitmap. This is the remote equivalent of androidx.compose.foundation.Image.

Parameters

remoteBitmap the RemoteImageBitmap to be drawn.
contentDescription the Text used by accessibility services to describe what this image represents.
modifier the RemoteModifier to be applied to this layout node.
contentScale the rule to apply to scale the image when its size does not match the layout size, Defaults to ContentScale.Fit.
alpha the Optional opacity to be applied to the remoteBitmap when it is rendered.

Last updated: