SurfaceDepthEffect


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?,
    focusedDepthEffect: DepthEffect?
)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

DepthEffect?

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

DepthEffect?

the DepthEffect used when the surface is focused

Public constructors

SurfaceDepthEffect

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

depthEffect

Added in 1.0.0-alpha09
val depthEffectDepthEffect?

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

focusedDepthEffect

Added in 1.0.0-alpha09
val focusedDepthEffectDepthEffect?

the DepthEffect used when the surface is focused