# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/privacysandbox/activity/provider/SdkActivityLauncherFactory "View this page in Java")

<br />

```
object SdkActivityLauncherFactory
```

<br />

*** ** * ** ***

| **This object is deprecated.**   
| This library is no longer supported.

## Summary

|                                                      ### Public functions                                                       |
|---------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SdkActivityLauncher](https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/core/SdkActivityLauncher) | [fromLauncherInfo](https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/provider/SdkActivityLauncherFactory#fromLauncherInfo(android.os.Bundle))`(launcherInfo: `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)`)` Creates a[SdkActivityLauncher](https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/core/SdkActivityLauncher)using the given[launcherInfo](https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/provider/SdkActivityLauncherFactory#fromLauncherInfo(android.os.Bundle))Bundle. |

## Public functions

### 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)  

```
fun fromLauncherInfo(launcherInfo: Bundle): SdkActivityLauncher
```

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

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