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


<a id='references'></a>


<h2 id="setoutline-outline">setOutline</h2>

<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. |