Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
aktivitas privacysandbox
TODO
Update Terbaru |
Rilis Stabil |
Kandidat Rilis |
Rilis Beta |
Rilis Alfa |
26 Maret 2025 |
- |
- |
- |
1.0.0-alpha02 |
Mendeklarasikan dependensi
Untuk menambahkan dependensi pada privacysandbox-activity, Anda harus menambahkan repositori Maven Google ke
project Anda. Baca repositori Maven Google
untuk mengetahui informasi selengkapnya.
Tambahkan dependensi untuk artefak yang diperlukan dalam file build.gradle
bagi aplikasi atau modul Anda:
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"
}
Untuk informasi dependensi selengkapnya, lihat Menambahkan dependensi build.
Masukan
Masukan Anda membantu meningkatkan kualitas Jetpack. Beri tahu kami jika Anda menemukan masalah baru atau mempunyai
masukan untuk meningkatkan kualitas library ini. Harap periksa
masalah yang sudah diketahui
dalam library ini sebelum membuat laporan baru. Anda dapat memberikan suara untuk masalah yang sudah diketahui dengan
mengklik tombol bintang.
Laporkan masalah baru
Lihat dokumentasi Issue Tracker
untuk informasi selengkapnya.
Versi 1.0
Versi 1.0.0-alpha02
26 Maret 2025
androidx.privacysandbox.activity:activity-client:1.0.0-alpha02
, androidx.privacysandbox.activity:activity-core:1.0.0-alpha02
, dan androidx.privacysandbox.activity:activity-provider:1.0.0-alpha02
dirilis. Versi 1.0.0-alpha02 berisi commit ini.
Fitur Baru
- Peluncur aktivitas SDK kini dapat dibuat untuk aktivitas yang tidak mengetahui siklus proses, yaitu aktivitas yang tidak menerapkan antarmuka
LifecycleOwner
. Peluncur ini harus dibuang secara manual oleh pemanggil.
Perubahan API
- Menambahkan
LocalUnmanagedSdkActivityLauncher
dan createUnmanagedSdkActivityLauncher
, class peluncur untuk aktivitas yang tidak mengetahui siklus proses dan metode untuk membuat peluncur tersebut.
- Mengganti nama
LocalSdkActivityLauncher
menjadi LocalManagedSdkActivityLauncher
untuk memperjelas perbedaan antara peluncur ini dan jenis peluncur yang tidak mengetahui siklus proses.
Versi 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
, dan androidx.privacysandbox.activity:activity-provider:1.0.0-alpha01
dirilis. Versi 1.0.0-alpha01 berisi commit ini.
Fitur Baru
- Memperkenalkan library Aktivitas Privacy Sandbox khusus.
- File ini berisi antarmuka untuk meluncurkan aktivitas dari Runtime SDK. Antarmuka sebelumnya ditentukan di library UI Privacy Sandbox.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[null,null,["Terakhir diperbarui pada 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."]]