RippleIndication
@Stable class RippleIndication : Indication
kotlin.Any | |
↳ | androidx.compose.material.ripple.RippleIndication |
Material implementation of IndicationInstance that expresses indication via ripples. This IndicationInstance will be used by default in Modifier.indication() if you have a MaterialTheme set in your hierarchy.
RippleIndication responds to Interaction.Pressed by starting a new RippleAnimation, and responds to other interactions by showing a fixed state layer.
By default this Indication with default parameters will be provided by MaterialTheme through androidx.compose.foundation.AmbientIndication, and hence used in interactions such as androidx.compose.foundation.clickable out of the box. You can also manually create a RippleIndication and provide it to androidx.compose.foundation.indication in order to customize its appearance.
Summary
Public methods | |
---|---|
IndicationInstance |
Function to create new IndicationInstance on demand. |
Boolean | |
Int |
hashCode() |
Public methods
createInstance
fun createInstance(): IndicationInstance
Function to create new IndicationInstance on demand. Typically this will be called by indication modified to spawn new instances when added to modified element.
hashCode
fun hashCode(): Int