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


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


<h2 id="graphicscontext-layercontainer">GraphicsContext</h2>

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


```kotlin
fun GraphicsContext(layerContainer: ViewGroup): GraphicsContext
```


Create a new `GraphicsContext` with the provided `ViewGroup` to contain `View` based layers.

#### Parameters

| | |
| --- | --- |
| layerContainer | `ViewGroup` used to contain `View` based layers that are created by the returned `GraphicsContext` |