Composable Function

RemoteImage

A composable that lays out and draws a given RemoteBitmap.

RemoteImage

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

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

Parameters

remoteBitmap the RemoteBitmap 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: