# OnBackPressedDispatcherOwnerFactory

Added in 1.14.0-alpha03

*** ** * ** ***


```
public final class OnBackPressedDispatcherOwnerFactory
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/activity/OnBackPressedDispatcherOwner` | `https://developer.android.com/reference/androidx/activity/OnBackPressedDispatcherOwnerFactory#create(androidx.activity.OnBackPressedDispatcher,androidx.lifecycle.Lifecycle)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/activity/OnBackPressedDispatcher onBackPressedDispatcher, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/lifecycle/Lifecycle lifecycle )` Creates an `https://developer.android.com/reference/androidx/activity/package-summary#OnBackPressedDispatcherOwner(androidx.activity.OnBackPressedDispatcher,androidx.lifecycle.Lifecycle)` directly backed by the provided `https://developer.android.com/reference/androidx/activity/OnBackPressedDispatcher` and `https://developer.android.com/reference/androidx/lifecycle/Lifecycle`. |

## Public methods

### create

Artifact: [androidx.activity:activity](https://developer.android.com/jetpack/androidx/releases/activity) [View Source](https://cs.android.com/search?q=file:androidx/activity/OnBackPressedDispatcherOwnerFactory.kt+function:OnBackPressedDispatcherOwner) Added in [1.14.0-alpha03](https://developer.android.com/jetpack/androidx/releases/activity#1.14.0-alpha03)

```
public static final @NonNull OnBackPressedDispatcherOwner create(
    @NonNull OnBackPressedDispatcher onBackPressedDispatcher,
    @NonNull Lifecycle lifecycle
)
```

Creates an `https://developer.android.com/reference/androidx/activity/package-summary#OnBackPressedDispatcherOwner(androidx.activity.OnBackPressedDispatcher,androidx.lifecycle.Lifecycle)` directly backed by the provided `https://developer.android.com/reference/androidx/activity/OnBackPressedDispatcher` and `https://developer.android.com/reference/androidx/lifecycle/Lifecycle`.