# LocalSdkActivityLauncher

Artifact: [androidx.privacysandbox.activity:activity-client](https://developer.android.com/jetpack/androidx/releases/privacysandbox-activity) [View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/activity/client/SdkActivityLaunchers.kt+class:androidx.privacysandbox.activity.client.LocalSdkActivityLauncher) 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/client/LocalSdkActivityLauncher "View this page in Java")


```
interface LocalSdkActivityLauncher : SdkActivityLauncher
```

<br />

Known direct subclasses [LocalManagedSdkActivityLauncher](https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/client/LocalManagedSdkActivityLauncher), [LocalUnmanagedSdkActivityLauncher](https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/client/LocalUnmanagedSdkActivityLauncher)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/client/LocalManagedSdkActivityLauncher` | **This class is deprecated.** This library is no longer supported. |
| `https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/client/LocalUnmanagedSdkActivityLauncher` | **This class is deprecated.** This library is no longer supported. |

*** ** * ** ***

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

Local version of `https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/core/SdkActivityLauncher` that allows callers in the app process to dispose the launcher resources.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/client/LocalManagedSdkActivityLauncher` |   |
| `https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/client/LocalUnmanagedSdkActivityLauncher` |   |

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[dispose](https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/client/LocalSdkActivityLauncher#dispose())()` **This function is deprecated.** This library is no longer supported. |

| ### Inherited functions |
|---|
| From [androidx.privacysandbox.activity.core.SdkActivityLauncher](https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/core/SdkActivityLauncher) |---|---| | `suspend https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[launchSdkActivity](https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/core/SdkActivityLauncher#launchSdkActivity(android.os.IBinder))(sdkActivityHandlerToken: https://developer.android.com/reference/android/os/IBinder.html)` **This function is deprecated.** This library is no longer supported. | |

## Public functions

### dispose

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 [dispose](https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/client/LocalSdkActivityLauncher#dispose())(): Unit
```

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

Clears references used to launch activities.

After this method is called, all further attempts to launch activities wil be rejected, and `https://developer.android.com/reference/kotlin/androidx/privacysandbox/activity/core/SdkActivityLauncher#launchSdkActivity(android.os.IBinder)` will return 'false'.

Doesn't do anything if the launcher was already disposed of.