The Developer Preview for Android 11 is now available; test it out and share your feedback.

DrawReceiver

interface DrawReceiver : Density
androidx.ui.core.DrawReceiver

Receiver scope for Draw lambda that allows ordering the child drawing between canvas operations. Most Draw calls don't accept children, but in some rare cases a Canvas should be modified for the children. DrawReceiver is the receiver scope for the onPaint to give access to drawChildren.

Summary

Public methods

abstract Unit

Causes child drawing operations to run during the onPaint lambda.

Inherited functions

Inherited extension functions

From androidx.ui.layout
Constraints

Creates the Constraints corresponding to the current DpConstraints.

DpConstraints

Creates the DpConstraints corresponding to the current Constraints.

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Inherited properties

Public methods

drawChildren

abstract fun drawChildren(): Unit

Causes child drawing operations to run during the onPaint lambda.