Class

RemoteContentDrawScope

A remote-compatible drawing scope for RemoteCompose that provides access to the content of the component being drawn.

Source set: JvmAndAndroid
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: JvmAndAndroid
override val width: RemoteFloat

height

Source set: JvmAndAndroid
override val height: RemoteFloat

Functions

drawContent

Source set: JvmAndAndroid
public fun drawContent()

Draws the content of the component.

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: