-item-info.md 1.3 KB

//tvlib/org.mjdev.tvlib.ui.components.gallery/ItemInfo

ItemInfo

[androidJvm]

@Composable

fun ItemInfo(modifier: Modifier = Modifier, src: Any? = null, visible: Boolean = isEditMode(), backgroundColor: Color = Color.Transparent, metadataRetriever: MetadataRetriever = rememberMetaDataRetriever(), titleFromItem: () -> Any? = {

    (src as? ItemWithTitle<*>)?.title
}, dateFromItem: () -> [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)? = {
    (src as? ItemWithDate)?.date ?: "-"
}, detailsFromItem: () -> [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)? = {
    metadataRetriever.getInfo(src)
})