Single Item Screen

abstract class SingleItemScreen<T : RefyItem>(items: List<T>, invalidMessage: StringResource, itemId: String?) : RefyItemBaseScreen<T> , RefyLinkUtilities<RefyLink>

The SingleItemScreen class is useful to give the base behavior of a single RefyItem's screen to correctly display and manage it

Author

N7ghtm4r3 - Tecknobit

Parameters

items

: the items list

invalidMessage

: the resource identifier of the invalid message to display when the item is not valid or not found in items list

itemId

: the identifier of the item

T

: the RefyItem of the current activity displayed

See also

Inheritors

Constructors

Link copied to clipboard
constructor(items: List<T>, invalidMessage: StringResource, itemId: String?)

Properties

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

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 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
abstract 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