privacysandbox activity

  
Aufgaben
Letzte Aktualisierung Stabile Version Release-Kandidat Beta-Ausgabe Alphaversion
26. März 2025 - - 1.0.0-alpha02

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 der Datei build.gradle für Ihre App oder Ihr Modul die Abhängigkeiten für die erforderlichen Artefakte hinzu:

Cool

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"
}

Weitere Informationen zu Abhängigkeiten finden Sie unter Build-Abhängigkeiten hinzufügen.

Feedback

Ihr Feedback hilft uns, Jetpack zu verbessern. Bitte teilen Sie uns mit, wenn Sie neue Probleme feststellen oder Ideen zur Verbesserung dieser Bibliothek haben. Sehen Sie sich die vorhandenen Probleme in dieser Bibliothek an, bevor Sie ein neues erstellen. Sie können einem vorhandenen Problem Ihre Stimme geben, indem Sie auf die Schaltfläche mit dem Stern klicken.

Neues Problem erstellen

Weitere Informationen finden Sie in der Dokumentation zum Issue Tracker.

Version 1.0

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 werden losgelassen. Version 1.0.0-alpha02 enthält diese Commits.

Neue Funktionen

  • SDK-Aktivitätsauslöser können jetzt für zyklusunabhängige Aktivitäten erstellt werden, d.h. für Aktivitäten, die die LifecycleOwner-Benutzeroberfläche nicht implementieren. Diese Launcher müssen vom Aufrufer manuell entsorgt werden.

API-Änderungen

  • LocalUnmanagedSdkActivityLauncher und createUnmanagedSdkActivityLauncher wurden hinzugefügt: eine Launcher-Klasse für Aktivitäten ohne Lebenszyklus und eine Methode zum Erstellen solcher Launcher.
  • LocalSdkActivityLauncher in LocalManagedSdkActivityLauncher umbenannt, um den Unterschied zwischen diesem und dem Lifecycle-unabhängigen Launcher-Typ hervorzuheben.

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 werden losgelassen. Version 1.0.0-alpha01 enthält diese Commits.

Neue Funktionen

  • Einführung einer speziellen Privacy Sandbox-Aktivitätsbibliothek.
  • Es enthält Schnittstellen zum Starten von Aktivitäten über die SDK-Laufzeit. Die Oberflächen wurden zuvor in der Privacy Sandbox UI-Bibliothek definiert.