Package-level declarations

Functions

Link copied to clipboard
fun generateRandomColor(): Color

Function to generate a random color for a collection

Link copied to clipboard
fun getCompleteMediaItemUrl(relativeMediaUrl: String): String

Function to get the complete media url with the current localUser.hostAddress value to display a media item such profile pictures or logo pictures

Link copied to clipboard
fun <T : RefyItem> List<T>.getRefyItem(itemId: String?): T?

Function to get from a RefyItem list the item with the corresponding to the identifier pass as parameter

Link copied to clipboard
fun String.toColor(): Color

Function to get the color from its hex code

Link copied to clipboard
fun Color.toHex(): String

Function to transform a Color value in the corresponding hex code