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

*** ** * ** ***


```
public interface LocalSdkActivityLauncher extends SdkActivityLauncher
```

<br />

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

|---|---|
| `https://developer.android.com/reference/androidx/privacysandbox/activity/client/LocalManagedSdkActivityLauncher` | **This class is deprecated.** This library is no longer supported. |
| `https://developer.android.com/reference/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/androidx/privacysandbox/activity/core/SdkActivityLauncher` that allows callers in the app process to dispose the launcher resources.

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

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `[dispose](https://developer.android.com/reference/androidx/privacysandbox/activity/client/LocalSdkActivityLauncher#dispose())()` **This method is deprecated.** This library is no longer supported. |

| ### Inherited methods |
|---|
| From [androidx.privacysandbox.activity.core.SdkActivityLauncher](https://developer.android.com/reference/androidx/privacysandbox/activity/core/SdkActivityLauncher) |---|---| | `abstract boolean` | `[launchSdkActivity](https://developer.android.com/reference/androidx/privacysandbox/activity/core/SdkActivityLauncher#launchSdkActivity(android.os.IBinder))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/os/IBinder.html sdkActivityHandlerToken)` **This method is deprecated.** This library is no longer supported. | |

## Public methods

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

```
abstract void [dispose](https://developer.android.com/reference/androidx/privacysandbox/activity/client/LocalSdkActivityLauncher#dispose())()
```

> [!CAUTION]
> **This method 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/androidx/privacysandbox/activity/core/SdkActivityLauncher#launchSdkActivity(android.os.IBinder)` will return 'false'.

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