privacysandbox ui

  
TODO
Latest Update Stable Release Release Candidate Beta Release Alpha Release
October 18, 2023 - - - 1.0.0-alpha07

Declaring dependencies

To add a dependency on privacysandbox-ui, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

Groovy

dependencies {
    // Use to implement privacysandbox ui
    implementation "androidx.privacysandbox.ui:ui:1.0.0-alpha07"

    // Use to implement privacysandbox ui-core
    implementation "androidx.privacysandbox.ui:ui-core:1.0.0-alpha07"
   
    // Use to implement privacysandbox ui-core
    implementation "androidx.privacysandbox.ui:ui-provider:1.0.0-alpha07"
}

Kotlin

dependencies {
    // Use to implement privacysandbox ui
    implementation("androidx.privacysandbox.ui:ui:1.0.0-alpha07")

    // Use to implement privacysandbox ui-core
    implementation("androidx.privacysandbox.ui:ui-core:1.0.0-alpha07")

    // Use to implement privacysandbox ui-provider
    implementation("androidx.privacysandbox.ui:ui-provider:1.0.0-alpha07")

    
}

For more information about dependencies, see Add build dependencies.

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

Version 1.0

Version 1.0.0-alpha07

October 18, 2023

androidx.privacysandbox.ui:ui-client:1.0.0-alpha07, androidx.privacysandbox.ui:ui-core:1.0.0-alpha07, and androidx.privacysandbox.ui:ui-provider:1.0.0-alpha07 are released. Version 1.0.0-alpha07 contains these commits.

New Features

  • Added backwards compatibility support for the library. On API 33 and below, the provider’s view will be rendered inside the app process, in a different classloader. (If0b7a)
  • Added logic that allows the resizing of host and provider containers to be committed in the same frame to avoid visible UI jank. (Ic2cd9)

API Changes

  • MinSdk for the library bumped to API 21. (I474b8)

Version 1.0.0-alpha06

September 20, 2023

androidx.privacysandbox.ui:ui-client:1.0.0-alpha06, androidx.privacysandbox.ui:ui-core:1.0.0-alpha06, and androidx.privacysandbox.ui:ui-provider:1.0.0-alpha06 are released. Version 1.0.0-alpha06 contains these commits.

New Features

  • Added logic to clip SandboxedSdkView to the “bounding parent” View that it may scroll within. This ensures that the contents of the SandboxedSdkView do not occlude other views or any UI components outside of the root content view. (I9ea94)

API Changes

  • Rename SandboxedSdkView.setZOrderOnTopAndEnableUserInteraction to orderProviderUiAboveClientUi (Iecb7e)

Bug Fixes

  • Send the correct Z-order value to the host. (Ib0ddf)
  • Only transfer touch focus for vertical scrolls/flings. (I0528c)

Version 1.0.0-alpha05

August 9, 2023

androidx.privacysandbox.ui:ui-client:1.0.0-alpha05, androidx.privacysandbox.ui:ui-core:1.0.0-alpha05, and androidx.privacysandbox.ui:ui-provider:1.0.0-alpha05 are released. Version 1.0.0-alpha05 contains these commits.

New Features

  • Added logic to transfer touch focus to host on scroll and fling gestures originating from SandboxedSdkView. This allows the client’s scrollable container hosting provider UI to respond correctly to scrolls and flings.

API Changes

  • Added windowInputToken parameter to SandboxedUiAdapter (Ief578)

Bug Fixes

  • Set session state to Active after the first draw (I36f3f)
  • Fix layout issue with SandboxedSdkView. (I09cb8)
  • Added logic to transfer touch focus to host. (I33b54)
  • Add windowInputToken parameter to SandboxedUiAdapter. This is necessary to ensure that the SurfaceControlViewHost's token is correctly associated with the host of the embedded hierarchy. (Ief578)
  • Run notifyResized inside the main thread. (I62440)
  • Fix crash in the Session.close() flow. (I5392e)

Version 1.0.0-alpha04

June 21, 2023

androidx.privacysandbox.ui:ui-client:1.0.0-alpha04, androidx.privacysandbox.ui:ui-core:1.0.0-alpha04, and androidx.privacysandbox.ui:ui-provider:1.0.0-alpha04 are released. Version 1.0.0-alpha04 contains these commits.

New Features

  • Introduce the SdkActivityLauncher. An interface for allowing runtime enabled SDKs to launch activities. (I5b3dc)

Bug Fixes

  • Fix notifyZOrderChanged race condition. Ensures that the UI provider is notified for all Z-order changes. The UI provider will not be explicitly notified if the Z-order of the SandboxedSdkView is changed before openSession is invoked.

Version 1.0.0-alpha03

May 24, 2023

androidx.privacysandbox.ui:ui-client:1.0.0-alpha03, androidx.privacysandbox.ui:ui-core:1.0.0-alpha03, and androidx.privacysandbox.ui:ui-provider:1.0.0-alpha03 are released. Version 1.0.0-alpha03 contains these commits.

New Features

  • StateChangedListener informs the application of changes in the UI session

API Changes

  • Added StateChangedListener to replace the ErrorConsumer (Icd5d3)

Bug Fixes

  • Fixed notifyZOrderChanged race condition so the UI provider is notified for all Z-order changes

Version 1.0.0-alpha02

April 19, 2023

androidx.privacysandbox.ui:ui-client:1.0.0-alpha02, androidx.privacysandbox.ui:ui-core:1.0.0-alpha02, and androidx.privacysandbox.ui:ui-provider:1.0.0-alpha02 are released. Version 1.0.0-alpha02 contains these commits.

Bug Fixes

  • Disabled flaking testChangingSandboxedSdkViewLayoutChangesChildLayout test

Version 1.0.0-alpha01

March 8, 2023

androidx.privacysandbox.ui:ui-client:1.0.0-alpha01, androidx.privacysandbox.ui:ui-core:1.0.0-alpha01, and androidx.privacysandbox.ui:ui-provider:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits.

New Features

  • These are new jetpack libraries that applications and Runtime Enabled SDKs (Privacy Sandbox) can use to let the application (client) host any UI provided by the SDK (provider).