Collections Manager

The CollectionsManager interface is used to manage the collections data list and the operations such links attachments, or teams sharing

Author

N7ghtm4r3 - Tecknobit

Inheritors

Properties

Link copied to clipboard
abstract val requestsScope: CoroutineScope

requestsScope the CoroutineScope used to make the requests to the backend

Functions

Link copied to clipboard
open fun attachLinks(collection: LinksCollection, links: List<RefyLink.RefyLinkImpl>, afterAttached: () -> Unit)

Method to request to attach links to the collection

Link copied to clipboard
open fun deleteCollection(collection: LinksCollection, onDelete: () -> Unit)

Method to delete the collection

Link copied to clipboard

Method to refresh the data after the links have been attached

Link copied to clipboard
abstract fun refreshAfterTeamsSharing()

Method to refresh the data after the collection has been shared with teams

Link copied to clipboard
open fun shareWithTeams(collection: LinksCollection, teams: List<Team>, afterShared: () -> Unit)

Method to request to share the collection with teams