LocalSdkActivityLauncher


interface LocalSdkActivityLauncher<T : Activity & LifecycleOwner> : SdkActivityLauncher


Local implementation of an SDK Activity launcher.

It allows callers in the app process to dispose resources used to launch SDK activities.

Summary

Public functions

Unit

Clears references used to launch activities.

Inherited functions

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

Tries to launch a new SDK activity using the given sdkActivityHandlerToken, assumed to be registered in the SdkSandboxControllerCompat.

Public functions

dispose

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

Clears references used to launch activities.

After this method is called all further attempts to launch activities wil be rejected. Doesn't do anything if the launcher was already disposed of.