---
title: "CanvasOp.Draw"
description: "Represents an actual drawing or state-setting operation (e.g., drawRect)."
type: "class"
lastmod: "2026-07-19T07:47:45.843131Z"
---
## API Reference

> Source set: Android

```kotlin
class Draw(val action: (RemoteComposeWriter) -> Unit) : CanvasOp()
```

Represents an actual drawing or state-setting operation (e.g., drawRect).
