---
title: "setOutline"
description: "Configures an outline for this [GraphicsLayer] based on the provided [Outline] object.

When [GraphicsLayer.shadowElevation] is non-zero a shadow is produced using a provided [Outline].
Additionally if [GraphicsLayer.clip] is true, the contents of this [GraphicsLayer] will be
clipped to this geometry."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun GraphicsLayer.setOutline(outline: Outline)
```


Configures an outline for this `GraphicsLayer` based on the provided `Outline` object.

When `GraphicsLayer.shadowElevation` is non-zero a shadow is produced using a provided `Outline`.
Additionally if `GraphicsLayer.clip` is true, the contents of this `GraphicsLayer` will be
clipped to this geometry.

#### Parameters

| | |
| --- | --- |
| outline | an `Outline` to apply for the layer. |




