SdkActivityLauncher
public interface SdkActivityLauncher
LocalSdkActivityLauncher |
This interface is deprecated. This library is no longer supported. |
LocalManagedSdkActivityLauncher |
This class is deprecated. This library is no longer supported. |
LocalUnmanagedSdkActivityLauncher |
This class is deprecated. This library is no longer supported. |
Interface that allows SDKs running in the Privacy Sandbox to launch activities.
Apps can create launchers by calling createManagedSdkActivityLauncher or createUnmanagedSdkActivityLauncher from one of their activities.
To send an SdkActivityLauncher to another process, they can call toLauncherInfo and send the resulting bundle.
SDKs can create launchers from an app-provided bundle by calling fromLauncherInfo.
Summary
Public methods |
|
|---|---|
abstract boolean |
This method is deprecated. This library is no longer supported. |
Extension functions |
|
|---|---|
default final @NonNull Bundle |
SdkActivityLaunchers.This method is deprecated. This library is no longer supported. |
Public methods
launchSdkActivity
abstract booleanlaunchSdkActivity(@NonNull IBinder sdkActivityHandlerToken)
Tries to launch a new SDK activity using the given sdkActivityHandlerToken.
Returns true if the SDK activity intent was sent, false if the launch was rejected for any reason.
A valid sdkActivityHandlerToken can be obtained by registering an SDK activity with androidx.privacysandbox.sdkruntime.core.controller.SdkSandboxControllerCompat.registerSdkSandboxActivityHandler.
Extension functions
SdkActivityLaunchers.toLauncherInfo
default final @NonNull Bundle SdkActivityLaunchers.toLauncherInfo(
@NonNull SdkActivityLauncher receiver
)
Returns a Bundle with the information necessary to recreate this launcher. Possibly in a different process.