Thread
#compose
    Alex

    Alex

    10 months ago
    Is there a way to trigger the ripple click effect programmatically in compose?
    Rick Regan

    Rick Regan

    10 months ago
    l

    Louis Pullen-Freilich [G]

    10 months ago
    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
    Rick Regan

    Rick Regan

    10 months ago
    (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

    Louis Pullen-Freilich [G]

    10 months ago
    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