Refy Link Utilities

interface RefyLinkUtilities<T : RefyLink>

The RefyLinkUtilities interface is useful to manage the RefyLink giving some common utilities that appear in different part of the application

Author

N7ghtm4r3 - Tecknobit

Parameters

T

: the type of the link between RefyLink and CustomRefyLink

Inheritors

Types

Link copied to clipboard
object Companion

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
open fun openLink(link: T)
open fun openLink(link: String)

Function to open a link

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
open fun showLinkReference(snackbarHostState: SnackbarHostState, link: T)

Function for the security view of a link

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

Function to show the reference link for the secure view