{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

RenderEffect

public sealed class RenderEffect

Known direct subclasses
BlurEffect

RenderEffect that will blur the contents of an optional input RenderEffect.

OffsetEffect

RenderEffect used to translate either the given RenderEffect or the content of the GraphicsLayerScope it is configured on.


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.

Summary

Protected constructors

Public methods

final @NonNull RenderEffect

Obtain a android.graphics.RenderEffect from the compose RenderEffect

boolean

Capability query to determine if the particular platform supports the RenderEffect.

Protected methods

abstract @NonNull RenderEffect

Protected constructors

RenderEffect

protected RenderEffect()

RenderEffect

protected RenderEffect()

Public methods

asAndroidRenderEffect

@RequiresApi
public final @NonNull RenderEffect asAndroidRenderEffect()

Obtain a android.graphics.RenderEffect from the compose RenderEffect

isSupported

public boolean isSupported()

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.

Protected methods

createRenderEffect

@RequiresApi
protected abstract @NonNull RenderEffect createRenderEffect()