<h2 id="drawwithcontent-ondraw">drawWithContent</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public fun RemoteModifier.drawWithContent(
    onDraw: RemoteContentDrawScope.() -> Unit
): RemoteModifier
```

Creates a [RemoteModifier](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteModifier) that allows drawing with the component's content.

#### Parameters

| | |
| --- | --- |
| onDraw | The drawing block that provides access to [RemoteContentDrawScope](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteContentDrawScope). |