Remote Compose
Remote Compose 是一種架構,可為遠端介面建立 UI
| 最近更新時間 | 穩定版 | 候選版 | Beta 版 | Alpha 版 |
|---|---|---|---|---|
| 2026 年 1 月 28 日 | - | - | - | 1.0.0-alpha03 |
宣告依附元件
如要新增 compose-remote 的依附元件,必須將 Google Maven 存放區新增至專案。詳情請參閱 Google 的 Maven 存放區。
在應用程式或模組的 build.gradle 檔案中,新增所需構件的依附元件:
Groovy
dependencies { implementation "androidx.compose.remote:remote-core:1.0.0-alpha03" // Use to create Remote Compose documents implementation "androidx.compose.remote:remote-creation:1.0.0-alpha03" implementation "androidx.compose.remote:remote-creation-core:1.0.0-alpha03" implementation "androidx.compose.remote:remote-creation-android:1.0.0-alpha03" implementation "androidx.compose.remote:remote-creation-jvm:1.0.0-alpha03" implementation "androidx.compose.remote:remote-creation-compose:1.0.0-alpha03" // Use to render a Remote Compose document implementation "androidx.compose.remote:remote-player-core:1.0.0-alpha03" implementation "androidx.compose.remote:remote-player-view:1.0.0-alpha03" implementation "androidx.compose.remote:remote-tooling-preview:1.0.0-alpha03" }
Kotlin
dependencies { implementation("androidx.compose.remote:remote-core:1.0.0-alpha03") // Use to create Remote Compose documents implementation("androidx.compose.remote:remote-creation:1.0.0-alpha03") implementation("androidx.compose.remote:remote-creation-core:1.0.0-alpha03") implementation("androidx.compose.remote:remote-creation-android:1.0.0-alpha03") implementation("androidx.compose.remote:remote-creation-jvm:1.0.0-alpha03") implementation("androidx.compose.remote:remote-creation-compose:1.0.0-alpha03") // Use to render a Remote Compose document implementation("androidx.compose.remote:remote-player-core:1.0.0-alpha03") implementation("androidx.compose.remote:remote-player-view:1.0.0-alpha03") implementation("androidx.compose.remote:remote-tooling-preview:1.0.0-alpha03") }
如要進一步瞭解依附元件,請參閱「新增建構依附元件」一文。
意見回饋
您的意見可協助我們改善 Jetpack。如果您發現新問題,或是有改進這個程式庫的建議,請告訴我們。回報新問題前,請先查看這個程式庫的現有問題。只要按一下星號按鈕,即可投票給現有的問題。
詳情請參閱 Issue Tracker 說明文件。
1.0 版本
1.0.0-alpha03 版本
2026 年 1 月 28 日
發布 androidx.compose.remote:remote-*:1.0.0-alpha03。1.0.0-alpha03 版包含這些修訂項目。
新功能
API 變更
- 已將
RemoteColor和RemoteBitmap的 API 遷移至使用 Compose 型別,而非直接公開 Android 型別 a9bfbb8 - 導入
RemoteDensity型別,以便判斷是否要在 Player 上評估 Density (為遠端裝置產生文件時),或內嵌運算式 (在同一部裝置上時,可最佳化文件大小) 54352bb RemoteState constantValueOrNull重新命名 (I6ad5c、b/467050397)
1.0.0-alpha02 版
2026 年 1 月 14 日
發布 androidx.compose.remote:remote-*:1.0.0-alpha02。1.0.0-alpha02 版包含這些修訂項目。
新功能
- 為 CoreText 新增最小/最大字型大小。I7bd3c
API 變更
- 為 Glance Wear 基礎架構公開最少的公用 API。(I7b4b9、b/467532762)
- 從
captureSingleRemoteDocument傳回CapturedDocument(I5a283、b/467532762)
修正錯誤
- 修正重新配置後的捲動位置,並新增邊緣效果支援 (6d4551)
1.0.0-alpha01 版
2025 年 12 月 17 日
發布 androidx.compose.remote:remote-*:1.0.0-alpha01。1.0.0-alpha01 版包含這些修訂項目。
- Remote Compose 是一種架構,可為遠端介面建立 UI。