Package 

Class SwipeRevealCoordinator


  • 
    public final class SwipeRevealCoordinator
    
                        

    Coordinates swipe-to-reveal state across multiple channel list items, ensuring only one item is open at a time.

    • Method Summary

      Modifier and Type Method Description
      final Unit register(String cid, AnchoredDraggableState<SwipeRevealValue> state) Registers a swipe state for the given channel CID.
      final Unit unregister(String cid) Unregisters the swipe state for the given channel CID.
      final Unit onItemOpened(String cid) Notifies the coordinator that an item has been opened.
      final Unit closeAll() Closes all currently open items.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SwipeRevealCoordinator

        SwipeRevealCoordinator()
    • Method Detail

      • register

         final Unit register(String cid, AnchoredDraggableState<SwipeRevealValue> state)

        Registers a swipe state for the given channel CID. Called from SwipeableChannelItem's DisposableEffect.

      • unregister

         final Unit unregister(String cid)

        Unregisters the swipe state for the given channel CID. Called when SwipeableChannelItem leaves composition.

      • closeAll

         final Unit closeAll()

        Closes all currently open items.