使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
凭据提供程序事件
待办事项
最近更新时间 |
稳定版 |
候选版 |
Beta 版 |
Alpha 版 |
2025 年 8 月 13 日 |
- |
- |
- |
1.0.0-alpha02 |
声明依赖项
如需添加凭据 providerevents 的依赖项,您必须将 Google Maven 制品库添加到项目中。如需了解详情,请参阅 Google 的 Maven 代码库。
在应用或模块的 build.gradle
文件中添加所需工件的依赖项:
Groovy
dependencies {
// Use to implement credentials providereventss
implementation "androidx.credentials.providerevents:providerevents:1.0.0-alpha02"
implementation "androidx.credentials.providerevents:providerevents-play-services:1.0.0-alpha02"
Kotlin
dependencies {
// Use to implement credentials providereventss
implementation("androidx.credentials.providerevents:providerevents:1.0.0-alpha02")
implementation("androidx.credentials.providerevents:providerevents-play-services:1.0.0-alpha02")
}
如需详细了解依赖项,请参阅添加 build 依赖项。
反馈
您的反馈将帮助我们改进 Jetpack。如果您发现了新问题,或对此库有任何改进建议,请告诉我们。创建新问题前,请先查看此库中的现有问题。您可以点击星标按钮,为现有问题投票。
创建新问题
如需了解详情,请参阅问题跟踪器文档。
1.0 版
版本 1.0.0-alpha02
2025 年 8 月 13 日
发布了 androidx.credentials.providerevents:providerevents:1.0.0-alpha02
和 androidx.credentials.providerevents:providerevents-play-services:1.0.0-alpha02
。版本 1.0.0-alpha02 中包含这些提交内容。
API 变更
- 对异常类和
GetCapabilitiesRequest
进行了小幅重构 (Ia6ee3)
- 添加了 API,允许信赖方 (RP) 向凭据提供方发送凭据状态信号,以便凭据提供方可以更新其端的凭据状态。(Ia7a65)
- 重构
ExportCredentialsResponse
,使报告的指标按凭据类型分组 (I3a088)
- 为设备设置服务添加了新 API (Icc9d5)
bug 修复
版本 1.0.0-alpha01
2025 年 5 月 7 日
发布了 androidx.credentials.providerevents:providerevents:1.0.0-alpha01
和 androidx.credentials.providerevents:providerevents-play-services:1.0.0-alpha01
。版本 1.0.0-alpha01 中包含这些提交内容。
新功能
- 我们正在添加新的
CredentialProviderEventsService
,凭据提供程序将支持该 CredentialProviderEventsService
以接收来自 Credential Manager API 的事件。凭据提供方现在可以通过此服务支持的一项功能是通行密钥条件创建体验。此服务旨在在未来传播其他凭据提供程序更新。
API 变更
CredentialProviderEventsService
- 一项新服务,凭据提供程序可从该服务进行扩展,以便接收来自 Credential Manager API 的事件。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-13。
[null,null,["最后更新时间 (UTC):2025-08-13。"],[],[],null,["# credentials providerevents\n==========================\n\nAPI Reference \n[androidx.credentials.providerevents](/reference/kotlin/androidx/credentials/providerevents/package-summary) \nTODO \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|-----------------|----------------|-------------------|--------------|--------------------------------------------------------------------------------------|\n| August 13, 2025 | - | - | - | [1.0.0-alpha02](/jetpack/androidx/releases/credentials-providerevents#1.0.0-alpha02) |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on credentials providerevents, 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 credentials providereventss\n implementation \"androidx.credentials.providerevents:providerevents:1.0.0-alpha02\"\n implementation \"androidx.credentials.providerevents:providerevents-play-services:1.0.0-alpha02\"\n```\n\n### Kotlin\n\n```kotlin\ndependencies {\n // Use to implement credentials providereventss\n implementation(\"androidx.credentials.providerevents:providerevents:1.0.0-alpha02\")\n implementation(\"androidx.credentials.providerevents:providerevents-play-services:1.0.0-alpha02\")\n\n\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:1301097%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=1301097&template=1773864)\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\nAugust 13, 2025\n\n`androidx.credentials.providerevents:providerevents:1.0.0-alpha02` and `androidx.credentials.providerevents:providerevents-play-services:1.0.0-alpha02` are released. Version 1.0.0-alpha02 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/b6c541571b9fb5471f965fc52612cb280713e5e4..c359e97fece91f3767a7d017e9def23c7caf1f53/credentials/providerevents).\n\n**API Changes**\n\n- Minor refactors to exception classes and `GetCapabilitiesRequest` ([Ia6ee3](https://android-review.googlesource.com/#/q/Ia6ee3ffde660611001aaad53a0d4decb3dfdb311))\n- Added APIs that allow relying parties (RPs) to send credential state signals to credential providers, such that they can update the state of the credentials on their end. ([Ia7a65](https://android-review.googlesource.com/#/q/Ia7a6505fc70cc69ac5e49c9fc2069744d6ea68e9))\n- Refactor `ExportCredentialsResponse` such that the metrics reported are grouped by the credential type ([I3a088](https://android-review.googlesource.com/#/q/I3a08855bb616b3c77fda1c3f9821fc54145df871))\n- Added new APIs for device setup service ([Icc9d5](https://android-review.googlesource.com/#/q/Icc9d59659d8a613accd78eecdb669e7140d2d142))\n\n**Bug Fixes**\n\n- Added new apis for credential exchange ([I77c1c](https://android-review.googlesource.com/#/q/I77c1ce3a524eacbdf08003bcf414c4b7c59703c4))\n\n### Version 1.0.0-alpha01\n\nMay 7, 2025\n\n`androidx.credentials.providerevents:providerevents:1.0.0-alpha01` and `androidx.credentials.providerevents:providerevents-play-services:1.0.0-alpha01` are released. Version 1.0.0-alpha01 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/b6c541571b9fb5471f965fc52612cb280713e5e4/credentials/providerevents).\n\n**New Features**\n\n- A new `CredentialProviderEventsService` is being added that credential providers will support to receive events from Credential Manager APIs. One of the features that credential providers can now support through this service is the passkey conditional create experience. This service is designed to propagate other credential provider updates as well in the future.\n\n**API Changes**\n\n- `CredentialProviderEventsService` - a new service for credential providers to extend from in order to receive events from Credential manager API."]]