SurfaceDepthEffect


public final class SurfaceDepthEffect


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.

Summary

Public constructors

SurfaceDepthEffect(
    DepthEffect depthEffect,
    DepthEffect focusedDepthEffect
)

Public methods

boolean
equals(Object other)
final DepthEffect

the DepthEffect used when the surface is in its default state (no other interactions are ongoing)

final DepthEffect

the DepthEffect used when the surface is focused

int

Public constructors

SurfaceDepthEffect

Added in 1.0.0-alpha09
public SurfaceDepthEffect(
    DepthEffect depthEffect,
    DepthEffect focusedDepthEffect
)

Public methods

equals

public boolean equals(Object other)

getDepthEffect

Added in 1.0.0-alpha09
public final DepthEffect getDepthEffect()

the DepthEffect used when the surface is in its default state (no other interactions are ongoing)

getFocusedDepthEffect

Added in 1.0.0-alpha09
public final DepthEffect getFocusedDepthEffect()

the DepthEffect used when the surface is focused

hashCode

public int hashCode()