LocalSdkActivityLauncher


interface LocalSdkActivityLauncher : SdkActivityLauncher

Known direct subclasses
LocalManagedSdkActivityLauncher

Local implementation of a lifecycle-aware SDK Activity launcher.

LocalUnmanagedSdkActivityLauncher

Local implementation of an SDK Activity launcher.


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)

Tries to launch a new SDK activity using the given sdkActivityHandlerToken.

Public functions

dispose

Added in 1.0.0-alpha02
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.