Class

SurfaceDepthEffect

Represents the DepthEffect used by a surface in different states.

Source set: Android
public class SurfaceDepthEffect(
    public val depthEffect: DepthEffect?,
    public val focusedDepthEffect: DepthEffect?,
)

Represents the DepthEffect used by a surface in different states.

Focused surfaces with a focusedDepthEffect will have a higher zIndex set so they can draw their focused depth effect over siblings.

Last updated: