wear compose remote
| 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 25 tháng 3 năm 2026 | - | - | - | 1.0.0-alpha01 |
Khai báo phần phụ thuộc
Để thêm một phần phụ thuộc trên wear compose remote, 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 wear compose.remotes //TODO: Confirm these dependencies implementation "androidx.wear.compose.remote:compose-remote:" // Use to implement wear compose.remote complications //TODO: Confirm these dependencies implementation "androidx.wear.compose.remote:compose-remote-complications-data-source:" // (Kotlin-specific extensions) //TODO: Confirm these dependencies implementation "androidx.wear.compose.remote:compose-remote-complications-data-source-ktx:" // Use to implement a compose.remote style and complication editor //TODO: Confirm these dependencies implementation "androidx.wear.compose.remote:compose-remote-editor:" // Can use to render complications. //TODO: Confirm these dependencies // This library is optional and compose.remotes may have custom implementation for rendering // complications. //TODO: Confirm these dependencies implementation "androidx.wear.compose.remote:compose-remote-complications-rendering:" }
Kotlin
dependencies { // Use to implement wear compose.remotes //TODO: Confirm these dependencies implementation("androidx.wear.compose.remote:compose-remote:") // Use to implement wear compose.remote complications //TODO: Confirm these dependencies implementation "androidx.wear.compose.remote:compose-remote-complications-data-source:" // (Kotlin-specific extensions) //TODO: Confirm these dependencies implementation "androidx.wear.compose.remote:compose-remote-complications-data-source-ktx:" // Use to implement a compose.remote style and complication editor //TODO: Confirm these dependencies implementation("androidx.wear.compose.remote:compose-remote-editor:") // Can use to render complications. //TODO: Confirm these dependencies // This library is optional and compose.remotes may have custom implementation for rendering // complications. //TODO: Confirm these dependencies implementation "androidx.wear.compose.remote:compose-remote-complications-rendering:" }
Để 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-alpha01
Ngày 25 tháng 3 năm 2026
Phát hành androidx.wear.compose.remote:remote-material3:1.0.0-alpha01. Phiên bản 1.0.0-alpha01 bao gồm các thay đổi sau.
Thay đổi về API
- Hiển thị các API công khai
RemoteTextButton. (I169e3, b/492476015) - Hiển thị các API công khai
RemoteIconButton. (Id7c71, b/492476015) - Hiển thị các API công khai
RemoteButtonGroup. (Ibfc22, b/492476015) - Công khai
RemoteButton,RemoteCompactButton,RemoteButtonDefaultsvàRemoteButtonColorsdưới dạng API công khai (I3bcdd, b/492476015) - Công khai
RemoteIcondưới dạng một API công khai (I0cc79, b/492476015) - Hiển thị
RemoteTextdưới dạng API công khai (I8a11a, b/492476015) - Expose
RemoteFloat.asRemoteDp()(I28b36, b/446824085)