# SdkActivityLauncherFactory

Artifact: [androidx.privacysandbox.activity:activity-provider](https://developer.android.com/jetpack/androidx/releases/privacysandbox-activity) [View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/activity/provider/SdkActivityLauncherFactory.kt+class:androidx.privacysandbox.activity.provider.SdkActivityLauncherFactory) Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/privacysandbox-activity#1.0.0-alpha03) Deprecated in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/privacysandbox-activity#1.0.0-alpha03)

*** ** * ** ***


```
public static class SdkActivityLauncherFactory
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> This library is no longer supported.

## Summary

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/activity/provider/SdkActivityLauncherFactory` | `https://developer.android.com/reference/androidx/privacysandbox/activity/provider/SdkActivityLauncherFactory#INSTANCE()` |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/activity/core/SdkActivityLauncher` | `[fromLauncherInfo](https://developer.android.com/reference/androidx/privacysandbox/activity/provider/SdkActivityLauncherFactory#fromLauncherInfo(android.os.Bundle))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/os/Bundle.html launcherInfo)` **This method is deprecated.** This library is no longer supported. |

## Public fields

### INSTANCE

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/privacysandbox-activity#1.0.0-alpha03) Deprecated in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/privacysandbox-activity#1.0.0-alpha03)

```
public static @NonNull SdkActivityLauncherFactory INSTANCE
```

## Public methods

### fromLauncherInfo

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/privacysandbox-activity#1.0.0-alpha03) Deprecated in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/privacysandbox-activity#1.0.0-alpha03)

```
public static final @NonNull SdkActivityLauncher [fromLauncherInfo](https://developer.android.com/reference/androidx/privacysandbox/activity/provider/SdkActivityLauncherFactory#fromLauncherInfo(android.os.Bundle))(@NonNull Bundle launcherInfo)
```

> [!CAUTION]
> **This method is deprecated.**   
> This library is no longer supported.

Creates a `https://developer.android.com/reference/androidx/privacysandbox/activity/core/SdkActivityLauncher` using the given `https://developer.android.com/reference/androidx/privacysandbox/activity/provider/SdkActivityLauncherFactory#fromLauncherInfo(android.os.Bundle)` Bundle.

You can create such a Bundle by calling `https://developer.android.com/reference/androidx/privacysandbox/activity/client/package-summary#(androidx.privacysandbox.activity.core.SdkActivityLauncher).toLauncherInfo()`. A `https://developer.android.com/reference/androidx/privacysandbox/activity/provider/SdkActivityLauncherFactory#fromLauncherInfo(android.os.Bundle)` is expected to have a valid SdkActivityLauncher Binder with `"sdkActivityLauncherBinderKey"` for a key, `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` is thrown otherwise.