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

Indication

@Stable interface Indication
androidx.ui.foundation.Indication

Generic interface to define visual effects when certain interaction happens. Examples might be showing some press indication, such as material ripples or define custom decoration when item is dragged.

This interface is factory-like and required to produce IndicationInstance on demand for indication modifier.

If you want to override default behaviour for indication for the whole subtree, consider creating object of this factory and providing it in IndicationAmbient.

Summary

Public methods
abstract IndicationInstance

Function to create new IndicationInstance on demand.

Public methods

createInstance

abstract 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.