Collection Screen

class CollectionScreen(collectionId: String) : SingleItemScreen<LinksCollection> , RefyLinkUtilities<RefyLink> , LinksCollectionUtilities

The CollectionScreen class is useful to display a LinksCollection's details and manage that collection

Author

N7ghtm4r3 - Tecknobit

Parameters

collectionId

: the identifier of the collection

See also

Constructors

Link copied to clipboard
constructor(collectionId: String)

Properties

Link copied to clipboard
val invalidMessage: StringResource
Link copied to clipboard
val items: List<LinksCollection>

Functions

Link copied to clipboard
@Composable
open fun AddLinksButton(viewModel: LinksCollectionViewModelHelper, show: MutableState<Boolean>, links: List<RefyLink>, collection: LinksCollection, tint: Color)

Function to add links to a collection

@Composable
open fun AddLinksButton(viewModel: TeamViewModelHelper, show: MutableState<Boolean>, links: List<RefyLink>, team: Team, tint: Color)

Function to add links to a teams

Link copied to clipboard
@Composable
open fun AddTeamsButton(viewModel: LinksCollectionViewModelHelper, show: MutableState<Boolean>, teams: List<Team>, collection: LinksCollection, tint: Color)

Function to share the collection with teams

Link copied to clipboard
@Composable
open fun DeleteCollectionButton(goBack: Boolean, viewModel: LinksCollectionViewModelHelper, deleteCollection: MutableState<Boolean>, collection: LinksCollection, tint: Color)

Function to delete a collection

Link copied to clipboard
@Composable
open fun DeleteLinkButton(viewModel: LinksViewModelHelper<RefyLink>, deleteLink: MutableState<Boolean>, link: RefyLink, tint: Color)

Function to delete a link

Link copied to clipboard

Function to init the item searching it in the items list by its itemId

Link copied to clipboard
@Composable
fun InvalidItemUi()

Function to display the error view when the item is not valid or has not been found

Link copied to clipboard
open fun openLink(link: RefyLink)
open fun openLink(link: String)

Function to open a link

Link copied to clipboard
@Composable
open fun ShareButton(link: RefyLink, snackbarHostState: SnackbarHostState)
@Composable
open fun ShareButton(link: RefyLink, snackbarHostState: SnackbarHostState, tint: Color)

Function to share a link outside the application

Link copied to clipboard
open fun shareLink(snackbarHostState: SnackbarHostState, link: RefyLink)

Function to share a link

Link copied to clipboard
@Composable
open override fun ShowContent()

Function to display the content of the screen

Link copied to clipboard
open fun showLinkReference(snackbarHostState: SnackbarHostState, link: RefyLink)

Function for the security view of a link

Link copied to clipboard
@Composable
open fun ViewLinkReferenceButton(snackbarHostState: SnackbarHostState, link: RefyLink)

Function to show the reference link for the secure view