Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
atividade do privacysandbox
TODO
Atualização mais recente |
Versão estável |
Versão candidata a lançamento |
Versão Beta |
Versão Alfa |
26 de março de 2025 |
- |
- |
- |
1.0.0-alpha02 |
Declarar dependências
Para adicionar uma dependência a privacysandbox-activity, é preciso adicionar o repositório Maven do Google ao
projeto. Leia Repositório Maven do Google para ver mais informações.
Adicione as dependências dos artefatos necessários ao arquivo build.gradle
do
seu app ou módulo:
Groovy
dependencies {
// Use to implement privacysandbox activitys
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity:1.0.0-alpha02"
// Use to implement privacysandbox activity complications
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha02"
// (Kotlin-specific extensions)
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha02"
// Use to implement a activity style and complication editor
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-editor:1.0.0-alpha02"
// Can use to render complications.
// TODO: Confirm these dependencies
// This library is optional and activitys may have custom implementation for rendering
// complications.
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-rendering:1.0.0-alpha02"
}
Kotlin
dependencies {
// Use to implement privacysandbox activitys
// TODO: Confirm these dependencies
implementation("androidx.privacysandbox.activity:activity:1.0.0-alpha02")
// Use to implement privacysandbox activity complications
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha02"
// (Kotlin-specific extensions)
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha02"
// Use to implement a activity style and complication editor
// TODO: Confirm these dependencies
implementation("androidx.privacysandbox.activity:activity-editor:1.0.0-alpha02")
// Can use to render complications.
// TODO: Confirm these dependencies
// This library is optional and activitys may have custom implementation for rendering
// complications.
// TODO: Confirm these dependencies
implementation "androidx.privacysandbox.activity:activity-complications-rendering:1.0.0-alpha02"
}
Para mais informações sobre dependências, consulte Adicionar dependências de build.
Feedback
Seu feedback ajuda a melhorar o Jetpack. Avise se você descobrir novos problemas ou tiver
ideias para melhorar esta biblioteca. Consulte os
problemas conhecidos
nesta biblioteca antes de criar um novo. Adicione seu voto a um problema
clicando no botão de estrela.
Criar novo problema
Consulte a documentação do Issue Tracker
para saber mais.
Versão 1.0
Versão 1.0.0-alpha02
26 de março de 2025
Lançamento de androidx.privacysandbox.activity:activity-client:1.0.0-alpha02
, androidx.privacysandbox.activity:activity-core:1.0.0-alpha02
e androidx.privacysandbox.activity:activity-provider:1.0.0-alpha02
. A versão 1.0.0-alpha02 contém estas confirmações.
Novos recursos
- Agora, os iniciadores de atividades do SDK podem ser criados para atividades que não têm conhecimento do ciclo de vida, ou seja, atividades que não implementam a interface
LifecycleOwner
. Esses iniciadores precisam ser descartados manualmente pelo autor da chamada.
Mudanças na API
- Foram adicionados
LocalUnmanagedSdkActivityLauncher
e createUnmanagedSdkActivityLauncher
, uma classe de inicialização para atividades sem ciclo de vida e um método para criar essas inicializações.
- O nome
LocalSdkActivityLauncher
foi renomeado como LocalManagedSdkActivityLauncher
para destacar a distinção entre esse tipo de inicializador e o tipo que não tem consciência do ciclo de vida.
Versão 1.0.0-alpha01
15 de novembro de 2023
Lançamento de androidx.privacysandbox.activity:activity-client:1.0.0-alpha01
, androidx.privacysandbox.activity:activity-core:1.0.0-alpha01
e androidx.privacysandbox.activity:activity-provider:1.0.0-alpha01
. A versão 1.0.0-alpha01 contém estas confirmações.
Novos recursos
- Apresentação de uma biblioteca dedicada de atividades do Sandbox de privacidade.
- Ele contém interfaces para iniciar atividades do SDK Runtime. As interfaces foram definidas anteriormente na biblioteca de interface do Sandbox de privacidade.
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-07-27 UTC.
[null,null,["Última atualização 2025-07-27 UTC."],[],[],null,["# privacysandbox activity\n=======================\n\nAPI Reference \n[androidx.privacysandbox.activity](/reference/kotlin/androidx/privacysandbox/activity/package-summary) \nTODO \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|----------------|----------------|-------------------|--------------|-----------------------------------------------------------------------------------|\n| March 26, 2025 | - | - | - | [1.0.0-alpha02](/jetpack/androidx/releases/privacysandbox-activity#1.0.0-alpha02) |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on privacysandbox-activity, you must add the Google Maven repository to your\nproject. Read [Google's Maven repository](/studio/build/dependencies#google-maven)\nfor more information.\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\n### Groovy\n\n```groovy\ndependencies {\n // Use to implement privacysandbox activitys\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity:1.0.0-alpha02\"\n\n // Use to implement privacysandbox activity complications\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha02\"\n // (Kotlin-specific extensions)\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha02\"\n\n // Use to implement a activity style and complication editor\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-editor:1.0.0-alpha02\"\n\n // Can use to render complications.\n // TODO: Confirm these dependencies\n // This library is optional and activitys may have custom implementation for rendering\n // complications.\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-rendering:1.0.0-alpha02\"\n}\n```\n\n### Kotlin\n\n```kotlin\ndependencies {\n // Use to implement privacysandbox activitys\n // TODO: Confirm these dependencies\n implementation(\"androidx.privacysandbox.activity:activity:1.0.0-alpha02\")\n\n // Use to implement privacysandbox activity complications\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha02\"\n // (Kotlin-specific extensions)\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha02\"\n\n // Use to implement a activity style and complication editor\n // TODO: Confirm these dependencies\n implementation(\"androidx.privacysandbox.activity:activity-editor:1.0.0-alpha02\")\n\n // Can use to render complications.\n // TODO: Confirm these dependencies\n // This library is optional and activitys may have custom implementation for rendering\n // complications.\n // TODO: Confirm these dependencies\n implementation \"androidx.privacysandbox.activity:activity-complications-rendering:1.0.0-alpha02\"\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:1116743%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=1116743&template=1629474)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nVersion 1.0\n-----------\n\n### Version 1.0.0-alpha02\n\nMarch 26, 2025\n\n`androidx.privacysandbox.activity:activity-client:1.0.0-alpha02`, `androidx.privacysandbox.activity:activity-core:1.0.0-alpha02`, and `androidx.privacysandbox.activity:activity-provider:1.0.0-alpha02` are released. Version 1.0.0-alpha02 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/312eb9f1ddece3a18317f18515a877e0e745cb2c..78132378b67c86698d1ade3dc368c9f15d738a71/privacysandbox/activity).\n\n**New Features**\n\n- SDK activity launchers can now be created for lifecycle-unaware activities, i.e. activities that don't implement the `LifecycleOwner` interface. These launchers need to be manually disposed of by the caller.\n\n**API Changes**\n\n- Added `LocalUnmanagedSdkActivityLauncher` and `createUnmanagedSdkActivityLauncher`, a launcher class for lifecycle-unaware activities and a method to create such launchers.\n- Renamed `LocalSdkActivityLauncher` to `LocalManagedSdkActivityLauncher` to highlight the distinction between this and lifecycle-unaware type of launchers.\n\n### Version 1.0.0-alpha01\n\nNovember 15, 2023\n\n`androidx.privacysandbox.activity:activity-client:1.0.0-alpha01`, `androidx.privacysandbox.activity:activity-core:1.0.0-alpha01`, and `androidx.privacysandbox.activity:activity-provider:1.0.0-alpha01` are released. [Version 1.0.0-alpha01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/312eb9f1ddece3a18317f18515a877e0e745cb2c/privacysandbox/activity)\n\n**New Features**\n\n- Introducing a dedicated Privacy Sandbox Activity library.\n- It contains interfaces for launching activities from the SDK Runtime. The interfaces were previously defined in the Privacy Sandbox UI library."]]