Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
Classes
Extension functions summary
Extension functions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-20 UTC."],[],[],null,["# androidx.privacysandbox.ui.provider\n===================================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/privacysandbox/ui/provider/package-summary \"View this page in Java\")\n\nInterfaces\n----------\n\n|------------------------------------------------------------------------------------------------------------------------|---|\n| [SessionObserverFactoryRegistry](/reference/kotlin/androidx/privacysandbox/ui/provider/SessionObserverFactoryRegistry) | |\n\nClasses\n-------\n\n|------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AbstractSandboxedUiAdapter](/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter) | An abstract class that implements [SandboxedUiAdapter](/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter) while abstracting away methods that do not need to be implemented by a UI provider. |\n| [AbstractSandboxedUiAdapter.AbstractSession](/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession) | An abstract class that implements [SandboxedUiAdapter.Session](/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter.Session) so that a UI provider does not need to implement the entire interface. |\n\nExtension functions summary\n---------------------------\n\n|--------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Bundle](https://developer.android.com/reference/android/os/Bundle.html) | `@`[ExperimentalFeatures.SharedUiPresentationApi](/reference/kotlin/androidx/privacysandbox/ui/core/ExperimentalFeatures.SharedUiPresentationApi) [SharedUiAdapter](/reference/kotlin/androidx/privacysandbox/ui/core/SharedUiAdapter)`.`[toCoreLibInfo](/reference/kotlin/androidx/privacysandbox/ui/provider/package-summary#(androidx.privacysandbox.ui.core.SharedUiAdapter).toCoreLibInfo())`()` Provides a [Bundle](https://developer.android.com/reference/android/os/Bundle.html) containing a Binder which represents a [SharedUiAdapter](/reference/kotlin/androidx/privacysandbox/ui/core/SharedUiAdapter). |\n| [Bundle](https://developer.android.com/reference/android/os/Bundle.html) | [SandboxedUiAdapter](/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter)`.`[toCoreLibInfo](/reference/kotlin/androidx/privacysandbox/ui/provider/package-summary#(androidx.privacysandbox.ui.core.SandboxedUiAdapter).toCoreLibInfo(android.content.Context))`(context: `[Context](https://developer.android.com/reference/android/content/Context.html)`)` Provides a [Bundle](https://developer.android.com/reference/android/os/Bundle.html) containing a Binder which represents a [SandboxedUiAdapter](/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter). |\n\nExtension functions\n-------------------\n\n### toCoreLibInfo\n\nArtifact: [androidx.privacysandbox.ui:ui-provider](/jetpack/androidx/releases/privacysandbox-ui) \n[View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/ui/provider/BinderSharedUiAdapterDelegate.kt+function:toCoreLibInfo) \nAdded in [1.0.0-alpha16](/jetpack/androidx/releases/privacysandbox-ui#1.0.0-alpha16) \n\n```\n@ExperimentalFeatures.SharedUiPresentationApi\nfun SharedUiAdapter.toCoreLibInfo(): Bundle\n```\n\nProvides a [Bundle](https://developer.android.com/reference/android/os/Bundle.html) containing a Binder which represents a [SharedUiAdapter](/reference/kotlin/androidx/privacysandbox/ui/core/SharedUiAdapter). The Bundle is sent to the client in order for the [SharedUiAdapter](/reference/kotlin/androidx/privacysandbox/ui/core/SharedUiAdapter) to be used to maintain a connection with a UI provider. \n\n### toCoreLibInfo\n\nArtifact: [androidx.privacysandbox.ui:ui-provider](/jetpack/androidx/releases/privacysandbox-ui) \n[View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/ui/provider/BinderAdapterDelegate.kt+function:toCoreLibInfo) \nAdded in [1.0.0-alpha16](/jetpack/androidx/releases/privacysandbox-ui#1.0.0-alpha16) \n\n```\nfun SandboxedUiAdapter.toCoreLibInfo(context: Context): Bundle\n```\n\nProvides a [Bundle](https://developer.android.com/reference/android/os/Bundle.html) containing a Binder which represents a [SandboxedUiAdapter](/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter). The Bundle is shuttled to the host app in order for the [SandboxedUiAdapter](/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter) to be used to retrieve content."]]