-local-photos-row.md 2.8 KB

//tvlib/org.mjdev.tvlib.ui.components.tv/LocalPhotosRow

LocalPhotosRow

[androidJvm]

@Composable

fun LocalPhotosRow(title: Any? = R.string.title_photo_local, rowState: TvLazyListState = rememberTvLazyListState(), padding: Dp = 8.dp, backgroundColor: Color = Color.DarkGray.copy(alpha = 0.3f), roundCornerSize: Dp = 8.dp, backgroundShape: Shape = RoundedCornerShape(roundCornerSize), selection: String? = null, selectionArgs: Array<String>? = null, sortOrder: String? = PhotoItem.SORT_ORDER_DATE_DESC, cardWidth: Dp = computeCardWidth(), contentScale: ContentScale = ContentScale.Crop, transform: (Cursor) -> Any? = { c -> PhotoItem(c) }, cursor: Cursor? = rememberCursor(

    uri = PhotoItem.URI,
    projection = PhotoItem.MEDIA_PROJECTION,
    selection = selection,
    selectionArgs = selectionArgs,
    sortOrder = sortOrder,
    transform = transform
), onItemFocus: (item: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, fromUser: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)? = null, openItem: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html).(item: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)? = null)