RemoteCanvas
Source set: JvmAndAndroid
@Composable
public fun RemoteCanvas(
modifier: RemoteModifier = RemoteModifier,
onDraw: RemoteDrawScope.() -> Unit,
)
A Composable that provides a RemoteDrawScope for drawing operations in RemoteCompose.
Basic example of drawing shapes on a RemoteCanvas:
Example of animating canvas drawing with continuous remote time variables:
Parameters
| modifier | The RemoteModifier to apply to this layout. |
| onDraw | The drawing commands to be executed on the remote canvas via RemoteDrawScope. |