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

OffsetEffect

public final class OffsetEffect extends RenderEffect

java.lang.Object
   ↳ androidx.compose.ui.graphics.RenderEffect
     ↳ androidx.compose.ui.graphics.OffsetEffect

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

Summary

Public constructors

OffsetEffect(RenderEffect renderEffect, @NonNull Offset offset)

Public methods

boolean
equals(Object other)
int
@NonNull String

Protected methods

@NonNull RenderEffect

Inherited methods

From androidx.compose.ui.graphics.RenderEffect
final @NonNull RenderEffect

Obtain a android.graphics.RenderEffect from the compose RenderEffect

boolean

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

Public constructors

OffsetEffect

public OffsetEffect(RenderEffect renderEffect, @NonNull Offset offset)

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public @NonNull String toString()

Protected methods

createRenderEffect

@RequiresApi
protected @NonNull RenderEffect createRenderEffect()