privacysandbox activity
| Bản cập nhật mới nhất | Bản phát hành ổn định | Bản phát hành dùng thử | Bản phát hành beta | Bản phát hành alpha |
|---|---|---|---|---|
| Ngày 17 tháng 12 năm 2025 | - | - | - | 1.0.0-alpha03 |
Khai báo phần phụ thuộc
Để thêm một phần phụ thuộc trên privacysandbox-activity, bạn phải thêm kho lưu trữ Google Maven vào dự án. Đọc nội dung Kho lưu trữ Maven của Google để biết thêm thông tin.
Thêm các phần phụ thuộc cho cấu phần phần mềm bạn cần trong tệp build.gradle cho ứng dụng hoặc mô-đun:
Groovy
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" }
Để biết thêm thông tin về các phần phụ thuộc, hãy xem bài viết Thêm phần phụ thuộc vào bản dựng.
Ý kiến phản hồi
Ý kiến phản hồi của bạn có thể giúp chúng tôi cải thiện Jetpack. Hãy cho chúng tôi biết nếu bạn phát hiện lỗi mới hoặc có ý tưởng cải thiện thư viện này. Vui lòng xem các lỗi hiện có trong thư viện này trước khi báo một lỗi mới. Bạn có thể thêm lượt bình chọn cho lỗi hiện có bằng cách nhấp vào nút dấu sao.
Xem tài liệu về Công cụ theo dõi lỗi để biết thêm thông tin.
Phiên bản 1.0
Phiên bản 1.0.0-alpha03
Ngày 17 tháng 12 năm 2025
Phát hành androidx.privacysandbox.activity:activity-client:1.0.0-alpha03, androidx.privacysandbox.activity:activity-core:1.0.0-alpha03 và androidx.privacysandbox.activity:activity-provider:1.0.0-alpha03. Phiên bản 1.0.0-alpha03 bao gồm các thay đổi sau.
- Thư viện này đã ngừng hoạt động và sẽ không nhận được bất kỳ bản cập nhật nào trong tương lai.
Thay đổi về API
- Các API
privacysandbox.activitykhông dùng nữa (I46a54, b/452878636) - Không dùng các API
privacysandbox.sdkruntimenữa (Ibe81a, b/452878636)
Phiên bản 1.0.0-alpha02
Ngày 26 tháng 3 năm 2025
Phát hành androidx.privacysandbox.activity:activity-client:1.0.0-alpha02, androidx.privacysandbox.activity:activity-core:1.0.0-alpha02 và androidx.privacysandbox.activity:activity-provider:1.0.0-alpha02. Phiên bản 1.0.0-alpha02 bao gồm các thay đổi sau.
Tính năng mới
- Giờ đây, bạn có thể tạo trình chạy hoạt động SDK cho các hoạt động không nhận biết vòng đời, tức là các hoạt động không triển khai giao diện
LifecycleOwner. Phương thức gọi cần phải loại bỏ các trình chạy này theo cách thủ công.
Thay đổi về API
- Đã thêm
LocalUnmanagedSdkActivityLaunchervàcreateUnmanagedSdkActivityLauncher, một lớp trình chạy cho các hoạt động không nhận biết vòng đời và một phương thức để tạo các trình chạy như vậy. - Đổi tên
LocalSdkActivityLauncherthànhLocalManagedSdkActivityLauncherđể làm nổi bật sự khác biệt giữa loại trình chạy này và loại trình chạy không nhận biết vòng đời.
Phiên bản 1.0.0-alpha01
Ngày 15 tháng 11 năm 2023
Phát hành androidx.privacysandbox.activity:activity-client:1.0.0-alpha01, androidx.privacysandbox.activity:activity-core:1.0.0-alpha01 và androidx.privacysandbox.activity:activity-provider:1.0.0-alpha01. Phiên bản 1.0.0-alpha01 bao gồm các thay đổi sau.
Tính năng mới
- Giới thiệu một thư viện Hoạt động chuyên dụng trong Hộp cát về quyền riêng tư.
- Thư viện này chứa các giao diện để chạy các hoạt động từ Thời gian chạy SDK. Trước đây, các giao diện này được xác định trong thư viện giao diện người dùng Hộp cát về quyền riêng tư.