# RenderEffect

Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/+class:androidx.compose.ui.graphics.RenderEffect) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0) Common/AllAndroid/JVM
- Cmn

  ```
  sealed class RenderEffect
  ```
Known direct subclasses [BlurEffect](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlurEffect), [OffsetEffect](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/OffsetEffect)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlurEffect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` that will blur the contents of an optional input `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/OffsetEffect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` used to translate either the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` or the content of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope` it is configured on. |

*** ** * ** ***

Intermediate rendering step used to render drawing commands with a corresponding visual effect. A `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` can be configured on a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope` and will be applied when drawn.

## Summary

| ### Protected constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect#RenderEffect()()` | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect#RenderEffect()()` | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/android/graphics/RenderEffect.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 31) https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect#asAndroidRenderEffect()()` Obtain a `https://developer.android.com/reference/android/graphics/RenderEffect.html` from the compose `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` | android |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect#isSupported()()` Capability query to determine if the particular platform supports the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect`. | Cmn android |

| ### Protected functions |
|---|---|---|
| `abstract https://developer.android.com/reference/android/graphics/RenderEffect.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 31) https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect#createRenderEffect()()` | android |

## Protected constructors

### RenderEffect

android

```
protected RenderEffect()
```

### RenderEffect

Cmn

```
protected RenderEffect()
```

## Public functions

### asAndroidRenderEffect

android Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
@RequiresApi(value = 31)
fun asAndroidRenderEffect(): RenderEffect
```

Obtain a `https://developer.android.com/reference/android/graphics/RenderEffect.html` from the compose `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect`

### isSupported

Cmn android Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
open fun isSupported(): Boolean
```

Capability query to determine if the particular platform supports the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect`. Not all platforms support all render effects.

Note RenderEffect is only supported on Android 12 and above. Attempts to use RenderEffect on older Android versions will be ignored.

## Protected functions

### createRenderEffect

android Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
@RequiresApi(value = 31)
protected abstract fun createRenderEffect(): RenderEffect
```