LocalSdkActivityLauncher


interface LocalSdkActivityLauncher : SdkActivityLauncher

Known direct subclasses
LocalManagedSdkActivityLauncher

This class is deprecated. This library is no longer supported.

LocalUnmanagedSdkActivityLauncher

This class is deprecated. This library is no longer supported.


Local version of SdkActivityLauncher that allows callers in the app process to dispose the launcher resources.

Summary

Public functions

Unit

Clears references used to launch activities.

Inherited functions

From androidx.privacysandbox.activity.core.SdkActivityLauncher
suspend Boolean
launchSdkActivity(sdkActivityHandlerToken: IBinder)

This function is deprecated. This library is no longer supported.

Public functions

dispose

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
fun dispose(): Unit

Clears references used to launch activities.

After this method is called, all further attempts to launch activities wil be rejected, and LocalSdkActivityLauncher.launchSdkActivity will return 'false'.

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