androidx.privacysandbox.ui.client


This package lets an application host UI created by an SdkRuntime aware SDK.

Interfaces

LocalSdkActivityLauncher

This interface is deprecated. Use the Privacy Sandbox Activity library version instead.

Objects

SandboxedUiAdapterFactory

Provides an adapter created from a supplied Bundle which acts as a proxy between the host app and the Binder provided by the provider of content.

Extension functions summary

LocalSdkActivityLauncher<T>
<T : Activity & LifecycleOwner> T.createSdkActivityLauncher(
    allowLaunch: () -> Boolean
)

This function is deprecated. Use the Privacy Sandbox Activity library version instead.

Bundle

This function is deprecated. Use the Privacy Sandbox Activity library version instead.

Extension functions

createSdkActivityLauncher

fun <T : Activity & LifecycleOwner> T.createSdkActivityLauncher(
    allowLaunch: () -> Boolean
): LocalSdkActivityLauncher<T>

Returns an SdkActivityLauncher that launches activities on behalf of an SDK by using this activity as a starting context.

Parameters
<T : Activity & LifecycleOwner>

the current activity from which new SDK activities will be launched. If this activity is destroyed any further SDK activity launches will simply be ignored.

allowLaunch: () -> Boolean

predicate called each time an activity is about to be launched by the SDK, the activity will only be launched if it returns true.

toLauncherInfo

fun SdkActivityLauncher.toLauncherInfo(): Bundle

Returns a Bundle with the information necessary to recreate this launcher. Possibly in a different process.