# LocalActivityResultRegistryOwner

Artifact: [androidx.activity:activity-compose](https://developer.android.com/jetpack/androidx/releases/activity) [View Source](https://cs.android.com/search?q=file:androidx/activity/compose/ActivityResultRegistry.kt+class:androidx.activity.compose.LocalActivityResultRegistryOwner) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/activity#1.3.0)


```
object LocalActivityResultRegistryOwner
```

<br />

*** ** * ** ***

Provides a `https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultRegistryOwner` that can be used by Composables hosted in a `https://developer.android.com/reference/kotlin/androidx/activity/ComponentActivity`.

## Summary

| ### Public functions |
|---|---|
| `infix https://developer.android.com/reference/kotlin/androidx/compose/runtime/ProvidedValue<https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultRegistryOwner?>` | `https://developer.android.com/reference/kotlin/androidx/activity/compose/LocalActivityResultRegistryOwner#provides(androidx.activity.result.ActivityResultRegistryOwner)(registryOwner: https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultRegistryOwner)` Associates a `https://developer.android.com/reference/kotlin/androidx/activity/compose/LocalActivityResultRegistryOwner` key to a value in a call to `https://developer.android.com/reference/kotlin/androidx/compose/runtime/CompositionLocalProvider.composable#CompositionLocalProvider(kotlin.Array,kotlin.Function0)`. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultRegistryOwner?` | `https://developer.android.com/reference/kotlin/androidx/activity/compose/LocalActivityResultRegistryOwner#current()` Returns current composition local value for the owner or `null` if one has not been provided nor is one available by looking at the `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/package-summary#LocalContext()`. |

## Public functions

### provides

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

```
infix fun provides(registryOwner: ActivityResultRegistryOwner): ProvidedValue<ActivityResultRegistryOwner?>
```

Associates a `https://developer.android.com/reference/kotlin/androidx/activity/compose/LocalActivityResultRegistryOwner` key to a value in a call to `https://developer.android.com/reference/kotlin/androidx/compose/runtime/CompositionLocalProvider.composable#CompositionLocalProvider(kotlin.Array,kotlin.Function0)`.

## Public properties

### current

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

```
val current: ActivityResultRegistryOwner?
```

Returns current composition local value for the owner or `null` if one has not been provided nor is one available by looking at the `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/package-summary#LocalContext()`.