LocalSdkActivityLauncher


public interface LocalSdkActivityLauncher<T extends Activity & LifecycleOwner> extends 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 methods

abstract void

Clears references used to launch activities.

Inherited methods

From androidx.privacysandbox.activity.core.SdkActivityLauncher
abstract boolean
launchSdkActivity(@NonNull IBinder sdkActivityHandlerToken)

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

Public methods

dispose

Added in 1.0.0-alpha01
abstract void dispose()

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.