Class

RenderEffect

Intermediate rendering step used to render drawing commands with a corresponding visual effect.

Source set: Common
expect sealed class RenderEffect()

Intermediate rendering step used to render drawing commands with a corresponding visual effect. A RenderEffect can be configured on a GraphicsLayerScope and will be applied when drawn.

Functions

isSupported

open fun isSupported(): Boolean

Capability query to determine if the particular platform supports the 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.

Source set: Android
actual sealed class RenderEffect

Functions

asAndroidRenderEffect

@RequiresApi(Build.VERSION_CODES.S)
    fun asAndroidRenderEffect(): android.graphics.RenderEffect

Obtain a android.graphics.RenderEffect from the compose RenderEffect

isSupported

actual open fun isSupported(): Boolean

Last updated: