# integerResource

## Functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/ui/res/integerResource.composable#integerResource(kotlin.Int)(id: @https://developer.android.com/reference/kotlin/androidx/annotation/IntegerRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Load an integer resource. |

## Functions

### integerResource

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

```
@Composable
fun integerResource(id: @IntegerRes Int): Int
```

Load an integer resource.

| Parameters |
|---|---|
| `id: @https://developer.android.com/reference/kotlin/androidx/annotation/IntegerRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the resource identifier |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the integer associated with the resource |