Source set: Android
public class RemoteContentDrawScope internal constructor(
remoteCanvas: RemoteCanvas,
private val content: RemoteDrawScope.() -> Unit = {
remoteCanvas.drawComponentContent()
},
private val contentWidth: (() -> RemoteFloat)? = null,
private val contentHeight: (() -> RemoteFloat)? = null,
private val paddingLeft: RemoteFloat? = null,
private val paddingTop: RemoteFloat? = null,
) : RemoteDrawScope(remoteCanvas)
A remote-compatible drawing scope for RemoteCompose that provides access to the content of the component being drawn.
Properties
width
Source set: Android
override val width: RemoteFloat
height
Source set: Android
override val height: RemoteFloat
Functions
drawContent
Source set: Android
public fun drawContent()
Draws the content of the component.