Google is committed to advancing racial equity for Black communities. See how.

RippleOpacity

interface RippleOpacity
androidx.ui.material.ripple.RippleOpacity

RippleOpacity defines the opacity of the ripple / state layer for a given Interaction.

Summary

Public methods
abstract Float

Public methods

opacityForInteraction

abstract fun opacityForInteraction(interaction: Interaction): Float
Return
the opacity of the ripple for the given interaction. Return 0f if this particular interaction should not show a corresponding ripple / state layer.