# LocalUnmanagedSdkActivityLauncher

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.LocalUnmanagedSdkActivityLauncher) 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 final class LocalUnmanagedSdkActivityLauncher<T extends Activity> implements LocalSdkActivityLauncher
```

<br />

*** ** * ** ***

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

Local implementation of an SDK Activity launcher. This launcher is not lifecycle-aware, meaning its resources need to be released manually by the caller to avoid memory leaks.

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

## Summary

| ### Public methods |
|---|---|
| `void` | `[dispose](https://developer.android.com/reference/androidx/privacysandbox/activity/client/LocalUnmanagedSdkActivityLauncher#dispose())()` **This method is deprecated.** This library is no longer supported. |
| `boolean` | `[launchSdkActivity](https://developer.android.com/reference/androidx/privacysandbox/activity/client/LocalUnmanagedSdkActivityLauncher#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

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

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

Clears references used to launch activities. This method **must** be called once the launcher is not needed anymore to avoid memory leaks.

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

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

### launchSdkActivity

```
public boolean [launchSdkActivity](https://developer.android.com/reference/androidx/privacysandbox/activity/client/LocalUnmanagedSdkActivityLauncher#launchSdkActivity(android.os.IBinder))(@NonNull IBinder sdkActivityHandlerToken)
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/privacysandbox/activity/core/SdkActivityLauncher#launchSdkActivity(android.os.IBinder)` |   |