# MotionCarouselScope

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/MotionCarousel.kt+class:androidx.constraintlayout.compose.MotionCarouselScope) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)


```
interface MotionCarouselScope
```

<br />

*** ** * ** ***

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/MotionCarouselScope#items(kotlin.Int,kotlin.Function1)(count: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, itemContent: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/MotionCarouselScope#itemsWithProperties(kotlin.Int,kotlin.Function2)( count: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, itemContent: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, properties: https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/MotionLayoutScope.MotionProperties>) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` |

| ### Extension functions |
|---|---|
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/MotionCarouselScope.https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/MotionCarouselScope#(androidx.constraintlayout.compose.MotionCarouselScope).items(kotlin.collections.List,kotlin.Function1)( items: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>, crossinline itemContent: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (item) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/MotionCarouselScope.https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/MotionCarouselScope#(androidx.constraintlayout.compose.MotionCarouselScope).itemsWithProperties(kotlin.collections.List,kotlin.Function2)( items: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>, crossinline itemContent: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (item, properties: https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/MotionLayoutScope.MotionProperties>) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` |

## Public functions

### items

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun items(count: Int, itemContent: @Composable (index: Int) -> Unit): Unit
```

### itemsWithProperties

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun itemsWithProperties(
    count: Int,
    itemContent: @Composable (index: Int, properties: State<MotionLayoutScope.MotionProperties>) -> Unit
): Unit
```

## Extension functions

### MotionCarouselScope.items

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/MotionCarousel.kt+function:items)

```
inline fun <T : Any?> MotionCarouselScope.items(
    items: List<T>,
    crossinline itemContent: @Composable (item) -> Unit
): Unit
```

### MotionCarouselScope.itemsWithProperties

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/MotionCarousel.kt+function:itemsWithProperties)

```
inline fun <T : Any?> MotionCarouselScope.itemsWithProperties(
    items: List<T>,
    crossinline itemContent: @Composable (item, properties: State<MotionLayoutScope.MotionProperties>) -> Unit
): Unit
```