androidx.compose.foundation

Indication

Interface · from org.jetbrains.compose.foundation:foundation:1.12.2

No hand-written docs yet.

Indication represents visual effects that occur when certain interactions happens. For example: showing a ripple effect when a component is pressed, or a highlight when a component is focused.

interface Indication

Kinds of Indication

Anywhere a Indication is expected, you can pass any of these.

How to get one

Or create one of the kinds listed above.

Used by

Parameters that take a Indication.

Library docs

Indication represents visual effects that occur when certain interactions happens. For example: showing a ripple effect when a component is pressed, or a highlight when a component is focused.

To implement your own Indication, see IndicationNodeFactory - an optimized Indication that allows for more efficient implementations than the deprecated rememberUpdatedInstance.

Indication is typically provided throughout the hierarchy through LocalIndication - you can provide a custom Indication to LocalIndication to change the default Indication used for components such as clickable.