Team Screen

class TeamScreen(teamId: String) : SingleItemScreen<Team> , RefyLinkUtilities<RefyLink> , TeamsUtilities

The TeamScreen class is useful to display a Team's details and manage that team

Author

N7ghtm4r3 - Tecknobit

Parameters

teamId

: the identifier of the team

See also

Constructors

Link copied to clipboard
constructor(teamId: String)

Properties

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

Functions

Link copied to clipboard
@Composable
open fun AddCollectionsButton(viewModel: TeamViewModelHelper, show: MutableState<Boolean>, collections: List<LinksCollection>, team: Team, tint: Color)

Function to share the collections with a team

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 DeleteLinkButton(viewModel: LinksViewModelHelper<RefyLink>, deleteLink: MutableState<Boolean>, link: RefyLink, tint: Color)

Function to delete a link

Link copied to clipboard
@Composable
open fun DeleteTeamButton(goBack: Boolean, viewModel: TeamViewModelHelper, deleteTeam: MutableState<Boolean>, team: Team, tint: Color)

Function to delete a team

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
@Composable
open fun LeaveTeamButton(goBack: Boolean, viewModel: TeamViewModelHelper, leaveTeam: MutableState<Boolean>, team: Team, tint: Color)

Function to leave from a team

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