Is there a way to trigger the ripple click effect ...
# compose
a
Is there a way to trigger the ripple click effect programmatically in compose?
r
l
You can manually emit a PressInteraction to the interaction source used by the component / ripple, or just share the same interaction source instance between components
r
(Sorry, I had read this response within the thread I linked above as saying it was not possible: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1630014079123200?thread_ts=1629998733.073900&cid=CJLTWPH7S )
l
It's not strictly programmatic ripple control, its just emitting an event that ripples respond to. You can't manually stop / start the ripple with a direct API or anything, but you can tell the ripple through this that something has been pressed, which will cause the ripple to start