androidx.privacysandbox.activity.client


Interfaces

LocalSdkActivityLauncher

Local implementation of an SDK Activity launcher.

Extension functions summary

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

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

Bundle

Returns a Bundle with the information necessary to recreate this launcher.

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.

fun SdkActivityLauncher.toLauncherInfo(): Bundle

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