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

RippleEffect

interface RippleEffect
androidx.ui.material.ripple.RippleEffect

RippleEffects are drawn as part of ripple as a visual indicator for a pressed state.

Use ripple to add an animation for your component.

Summary

Public methods

open Unit

Free up the resources associated with this ripple.

abstract Unit

Override this method to draw the ripple.

abstract Unit
finish(canceled: Boolean)

Called when the user input that triggered this effect was confirmed or canceled.

Public methods

dispose

open fun dispose(): Unit

Free up the resources associated with this ripple.

draw

abstract fun DrawScope.draw(color: Color): Unit

Override this method to draw the ripple.

Parameters
color: Color The Color for this RippleEffect.

finish

abstract fun finish(canceled: Boolean): Unit

Called when the user input that triggered this effect was confirmed or canceled.

Typically causes the ripple to start disappearance animation.