Privacy Sandbox-Aktivität
| Letzte Aktualisierung | Stabile Release | Releasekandidat | Beta-Release | Alpha-Release |
|---|---|---|---|---|
| 17. Dezember 2025 | - | - | - | 1.0.0-alpha03 |
Abhängigkeiten deklarieren
Wenn Sie eine Abhängigkeit von privacysandbox-activity hinzufügen möchten, müssen Sie Ihrem Projekt das Google Maven-Repository hinzufügen. Weitere Informationen finden Sie im Maven-Repository von Google.
Fügen Sie die Abhängigkeiten für die benötigten Artefakte der Datei build.gradle für Ihre App oder Ihr Modul hinzu:
Cool
dependencies { // Use to implement privacysandbox activitys // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity:1.0.0-alpha03" // Use to implement privacysandbox activity complications // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha03" // (Kotlin-specific extensions) // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha03" // Use to implement a activity style and complication editor // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-editor:1.0.0-alpha03" // 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-alpha03" }
Kotlin
dependencies { // Use to implement privacysandbox activitys // TODO: Confirm these dependencies implementation("androidx.privacysandbox.activity:activity:1.0.0-alpha03") // Use to implement privacysandbox activity complications // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-complications-data-source:1.0.0-alpha03" // (Kotlin-specific extensions) // TODO: Confirm these dependencies implementation "androidx.privacysandbox.activity:activity-complications-data-source-ktx:1.0.0-alpha03" // Use to implement a activity style and complication editor // TODO: Confirm these dependencies implementation("androidx.privacysandbox.activity:activity-editor:1.0.0-alpha03") // 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-alpha03" }
Weitere Informationen zu Abhängigkeiten finden Sie unter Build-Abhängigkeiten hinzufügen.
Feedback
Ihr Feedback hilft uns, Jetpack zu verbessern. Wenn Sie neue Probleme entdecken oder Ideen zur Verbesserung dieser Bibliothek haben, lassen Sie es uns wissen. Bevor Sie ein neues Problem erstellen, sollten Sie sich jedoch die bereits gemeldeten Probleme in dieser Bibliothek ansehen. Wenn Sie sich einer Problemmeldung anschließen möchten, klicken Sie auf die Schaltfläche mit dem Stern.
Weitere Informationen finden Sie in der Dokumentation zum Issue Tracker.
Version 1.0
Version 1.0.0-alpha03
17. Dezember 2025
androidx.privacysandbox.activity:activity-client:1.0.0-alpha03, androidx.privacysandbox.activity:activity-core:1.0.0-alpha03 und androidx.privacysandbox.activity:activity-provider:1.0.0-alpha03 sind veröffentlicht. Version 1.0.0-alpha03 enthält diese Commits.
- Diese Bibliothek ist veraltet und wird nicht mehr aktualisiert.
API-Änderungen
- Eingestellte
privacysandbox.activityAPIs (I46a54, b/452878636) - Verworfene
privacysandbox.sdkruntimeAPIs (Ibe81a, b/452878636)
Version 1.0.0-alpha02
26. März 2025
androidx.privacysandbox.activity:activity-client:1.0.0-alpha02, androidx.privacysandbox.activity:activity-core:1.0.0-alpha02 und androidx.privacysandbox.activity:activity-provider:1.0.0-alpha02 sind veröffentlicht. Version 1.0.0-alpha02 enthält diese Commits.
Neue Funktionen
- SDK-Aktivitätsstarter können jetzt für Aktivitäten erstellt werden, die nicht lebenszyklusbewusst sind, d.h. die
LifecycleOwner-Schnittstelle nicht implementieren. Diese Launcher müssen vom Aufrufer manuell entsorgt werden.
API-Änderungen
LocalUnmanagedSdkActivityLauncherundcreateUnmanagedSdkActivityLauncherwurden hinzugefügt, eine Launcher-Klasse für Aktivitäten, die nicht auf den Lebenszyklus reagieren, und eine Methode zum Erstellen solcher Launcher.LocalSdkActivityLauncherwurde inLocalManagedSdkActivityLauncherumbenannt, um den Unterschied zu Launchern hervorzuheben, die den Lebenszyklus nicht berücksichtigen.
Version 1.0.0-alpha01
15. November 2023
androidx.privacysandbox.activity:activity-client:1.0.0-alpha01, androidx.privacysandbox.activity:activity-core:1.0.0-alpha01 und androidx.privacysandbox.activity:activity-provider:1.0.0-alpha01 sind veröffentlicht. Version 1.0.0-alpha01 enthält diese Commits.
Neue Funktionen
- Einführung einer speziellen Privacy Sandbox Activity-Bibliothek
- Es enthält Schnittstellen zum Starten von Aktivitäten über die SDK-Laufzeit. Die Schnittstellen wurden zuvor in der Privacy Sandbox-UI-Bibliothek definiert.