# ActivityResultRegistryOwner

Artifact: [androidx.activity:activity](https://developer.android.com/jetpack/androidx/releases/activity) [View Source](https://cs.android.com/search?q=file:androidx/activity/result/ActivityResultRegistryOwner.kt+class:androidx.activity.result.ActivityResultRegistryOwner) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/activity#1.2.0)

*** ** * ** ***


```
public interface ActivityResultRegistryOwner
```

<br />

Known direct subclasses [ComponentActivity](https://developer.android.com/reference/androidx/activity/ComponentActivity)

|---|---|
| `https://developer.android.com/reference/androidx/activity/ComponentActivity` | Base class for activities that enables composition of higher level components. |

Known indirect subclasses [AppCompatActivity](https://developer.android.com/reference/androidx/appcompat/app/AppCompatActivity), [BaseCarAppActivity](https://developer.android.com/reference/androidx/car/app/activity/BaseCarAppActivity), [CarAppActivity](https://developer.android.com/reference/androidx/car/app/activity/CarAppActivity), [FragmentActivity](https://developer.android.com/reference/androidx/fragment/app/FragmentActivity), [LauncherActivity](https://developer.android.com/reference/androidx/car/app/activity/LauncherActivity)

|---|---|
| `https://developer.android.com/reference/androidx/appcompat/app/AppCompatActivity` | Base class for activities that wish to use some of the newer platform features on older Android devices. |
| `https://developer.android.com/reference/androidx/car/app/activity/BaseCarAppActivity` | Core logic for CarAppLibrary Activity interaction with a host. |
| `https://developer.android.com/reference/androidx/car/app/activity/CarAppActivity` | The class representing a car app activity in the main display. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentActivity` | Base class for activities that want to use the support-based `https://developer.android.com/reference/androidx/fragment/app/Fragment`. |
| `https://developer.android.com/reference/androidx/car/app/activity/LauncherActivity` | This class handles providing the right launcher activity when running native applications and Car App Library applications. |

*** ** * ** ***

A class that has an `https://developer.android.com/reference/androidx/activity/result/ActivityResultRegistry` that allows you to register a `https://developer.android.com/reference/androidx/activity/result/ActivityResultCallback` for handling an `https://developer.android.com/reference/androidx/activity/result/contract/ActivityResultContract`.

If it is not safe to call `https://developer.android.com/reference/androidx/activity/result/ActivityResultRegistry#register(kotlin.String,androidx.lifecycle.LifecycleOwner,androidx.activity.result.contract.ActivityResultContract,androidx.activity.result.ActivityResultCallback)` in the constructor, it is strongly recommended to also implement `https://developer.android.com/reference/androidx/activity/result/ActivityResultCaller`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/activity/result/ActivityResultRegistry` |   |

## Summary

| ### Public methods |
|---|---|
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/activity/result/ActivityResultRegistry` | `https://developer.android.com/reference/androidx/activity/result/ActivityResultRegistryOwner#getActivityResultRegistry()()` Returns the ActivityResultRegistry of the provider. |

## Public methods

### getActivityResultRegistry

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

```
abstract @NonNull ActivityResultRegistry getActivityResultRegistry()
```

Returns the ActivityResultRegistry of the provider.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/activity/result/ActivityResultRegistry` | The activity result registry of the provider. |