SwipeRevealCoordinator

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

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
suspend fun closeAll()

Closes all currently open items.

Link copied to clipboard
suspend fun onItemOpened(cid: String)

Notifies the coordinator that an item has been opened. All other open items will be animated to SwipeRevealValue.Closed.

Link copied to clipboard

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

Link copied to clipboard
fun unregister(cid: String)

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