透過集合功能整理內容
你可以依據偏好儲存及分類內容。
視窗擴充功能核心
適用於視窗管理員程式庫擴充功能的 Core API
最近更新時間 |
穩定版 |
候選版 |
Beta 版 |
Alpha 版 |
2023 年 6 月 7 日 |
1.0.0 |
- |
- |
- |
宣告依附元件
如要為視窗擴充功能核心新增依附元件,您必須將 Google Maven 存放區新增至專案。詳情請參閱 Google 的 Maven 存放區。
在應用程式或模組的 build.gradle
檔案中,新增所需構件的依附元件:
Groovy
dependencies {
// Use to implement window extensions core
implementation "androidx.window.extensions.core:core:1.0.0"
}
Kotlin
dependencies {
// Use to implement window extensions core
implementation("androidx.window.extensions.core:core:1.0.0")
}
如要進一步瞭解依附元件,請參閱「新增建構依附元件」一文。
意見回饋
您的意見可協助我們改善 Jetpack。如果您發現新問題,或是有改進這個程式庫的建議,請告訴我們。回報新問題前,請先查看這個程式庫的現有問題。只要按一下星號按鈕,即可投票給現有的問題。
建立新問題
詳情請參閱 Issue Tracker 說明文件。
1.0 版
1.0.0 版本
2023 年 6 月 7 日
發布 androidx.window.extensions.core:core:1.0.0
。1.0.0 版包含此連結所列的修訂項目。
1.0.0 的主要功能
- 可與
androidx.window.extensions
搭配使用的簡易介面。不適用於一般開發人員使用。如需一般用途,請參閱 androidx.core
。
1.0.0-rc01 版
2023 年 5 月 10 日
發布 androidx.window.extensions.core:core:1.0.0-rc01
。查看 1.0.0-rc01 版的修訂項。
新功能
- 釋出部分介面,改善
androidx.window
和特定裝置的功能。這些介面不適用於一般用途。請改用 androidx.core
中的介面。
修正錯誤
- 將核心介面設為公開,以便在擴充功能中使用。(I45052)。
1.0.0-beta03 版
2023 年 5 月 3 日
發布 androidx.window.extensions.core:core:1.0.0-beta03
。1.0.0-beta03 版包含此連結所列的修訂項目。
新功能
恢復 extensions.core
介面。這是實作詳細資料,請改用 androidx.core
API。
修正錯誤
- 將核心介面設為公開,以便在擴充功能中使用。(I45052)。
1.0.0-beta02 版
2023 年 4 月 5 日
發布 androidx.window.extensions.core:core:1.0.0-beta02
。查看 1.0.0-beta02 版的修訂項。
API 變更
1.0.0-beta01 版
2023 年 3 月 22 日發布 androidx.window.extensions.core:core:1.0.0-beta01
。1.0.0-beta01 版包含此連結所列的修訂項目。
- 新增視窗擴充功能核心版本的函式介面,以減少 lambda 運算式去除糖化的相關問題。
1.0.0-alpha01 版
2023 年 2 月 22 日
發布 androidx.window.extensions.core:core:1.0.0-alpha01
。1.0.0-alpha01 版包含此連結所列的修訂項目。
新功能
- 新增非一般開發人員使用的部分本機介面。這是支援 androidx.window 程式庫的實作細節。請改為參閱
androidx.window
程式庫。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# window extensions core\n======================\n\nAPI Reference \n[androidx.window.extensions.core](/reference/kotlin/androidx/window/extensions/core/package-summary) \nThe Core APIs for Window Manager Library Extensions \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|---------------|------------------------------------------------------------------|-------------------|--------------|---------------|\n| June 7, 2023 | [1.0.0](/jetpack/androidx/releases/window-extensions-core#1.0.0) | - | - | - |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on window extensions core, 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 window extensions core\n implementation \"androidx.window.extensions.core:core:1.0.0\"\n}\n```\n\n### Kotlin\n\n```kotlin\ndependencies {\n // Use to implement window extensions core\n implementation(\"androidx.window.extensions.core:core:1.0.0\")\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:1324559%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=1324559&template=1789973)\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\n\nJune 7, 2023\n\n`androidx.window.extensions.core:core:1.0.0` is released. [Version 1.0.0 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/41e119676c75bba23ed13a5061871a9ff46d3036..d880ecd411d7ed0d3897644cd64d7e20eae98916/window/extensions/core/core)\n\n**Major features of 1.0.0**\n\n- Simple interfaces to work with `androidx.window.extensions`. Not meant for generic developer use. For generic use see `androidx.core`.\n\n### Version 1.0.0-rc01\n\nMay 10, 2023\n\n`androidx.window.extensions.core:core:1.0.0-rc01` is released. [Version 1.0.0-rc01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/5d4c9b3ab577ea883637e38bbd1fc3ca9b08f2fa..41e119676c75bba23ed13a5061871a9ff46d3036/window/extensions/core/core)\n\n**New Features**\n\n- Release some interfaces to improve function for `androidx.window` and specific devices. These interfaces are not for general use. Use the interfaces in `androidx.core` instead.\n\n**Bug Fixes**\n\n- Make core interfaces public so it can be used in extensions. ([I45052](https://android-review.googlesource.com/#/q/I450527ca1ed9cb8bcd27289d681f441b0074f012))\n\n### Version 1.0.0-beta03\n\nMay 3, 2023\n\n`androidx.window.extensions.core:core:1.0.0-beta03` is released. [Version 1.0.0-beta03 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/a200cb82769634cecdb118ec4f0bfdf0b086e597..5d4c9b3ab577ea883637e38bbd1fc3ca9b08f2fa/window/extensions/core/core)\n\n**New Features**\n\nReinstate `extensions.core` interfaces. These are an implementation detail used, please use the `androidx.core` APIs instead.\n\n**Bug Fixes**\n\n- Make core interfaces public so it can be used in extensions. ([I45052](https://android-review.googlesource.com/#/q/I450527ca1ed9cb8bcd27289d681f441b0074f012))\n\n### Version 1.0.0-beta02\n\nApril 5, 2023\n\n`androidx.window.extensions.core:core:1.0.0-beta02` is released. [Version 1.0.0-beta02 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/5e7d256f82fbafb6d059ab7b18fddd87c7531553..a200cb82769634cecdb118ec4f0bfdf0b086e597/window/extensions/core/core)\n\n**API Changes**\n\n- Hide local interfaces that are not meant for public use. ([I3e88b](https://android-review.googlesource.com/#/q/I3e88b44d034b1a24347ac8606755ba04c9bd1558))\n\n### Version 1.0.0-beta01\n\nMarch 22, 2023\n`androidx.window.extensions.core:core:1.0.0-beta01` is released. [Version 1.0.0-beta01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/87533b4ff06971ed59028936cd9b6da988cd4522..5e7d256f82fbafb6d059ab7b18fddd87c7531553/window/extensions/core/core)\n\n- Added the window extensions core version of functional interface to reduce issues of lambda expressions desugaring.\n\n### Version 1.0.0-alpha01\n\nFebruary 22, 2023\n\n`androidx.window.extensions.core:core:1.0.0-alpha01` is released. [Version 1.0.0-alpha01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/87533b4ff06971ed59028936cd9b6da988cd4522/)\n\n**New Features**\n\n- Add some local interfaces that are not meant for general developer use. This is an implementation detail to support the androidx.window library. Please see the `androidx.window` library instead."]]