Links Screen

abstract class LinksScreen<T : RefyLink>(val viewModel: LinksViewModel<T>) : ItemScreen, RefyLinkUtilities<T>

The LinksScreen class is useful to give the basic structure for a screen to display the a RefyLink's list

Author

N7ghtm4r3 - Tecknobit

Parameters

viewModel

: the view model used to execute this operation

T

: the type of the RefyLink between RefyLink and CustomRefyLink

See also

SessionManager

Inheritors

Constructors

Link copied to clipboard
constructor(viewModel: LinksViewModel<T>)

Properties

Link copied to clipboard

Functions

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

Function to add links to a collection

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

Function to add links to a teams

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

Function to delete a link

Link copied to clipboard
abstract fun executeFabAction()

Function to execute the fab action previously set

Link copied to clipboard
@Composable
abstract fun LinkCard(link: T)

Function to create a properly Card to display the link

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

Function to open a link

Link copied to clipboard
@Composable
fun RefyLinkCard(link: T, onClick: () -> Unit, onLongClick: () -> Unit, showCompleteOptionsBar: Boolean = true)

Function to create a Card to display the RefyLink's details

Link copied to clipboard

Function to restart the refresher of the screen displayed

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

Function to share a link outside the application

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

Function to share a link

Link copied to clipboard
@Composable
abstract fun ShowContent()

Function to display the content of the screen

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

Function for the security view of a link

Link copied to clipboard

Function to suspend the refresher of the screen displayed

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

Function to show the reference link for the secure view