Transaction API 将于 2023 年 5 月 3 日弃用,在此之前,会话操作将于 2023 年 6 月 13 日停用。如需了解详情,请参阅
对话型 Action 停用。
ResultType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
RESULT_TYPE_UNSPECIFIED |
未指定。 |
CAN_TRANSACT |
用户符合执行此交易的条件。 |
CANNOT_TRANSACT |
用户不符合执行此交易的条件。这可能是因为某些条件(例如国家/地区或平台不受支持)、用户不符合交易条件、用户不想分享个人信息等。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe transaction requirements check determines if a user is eligible to perform a transaction.\u003c/p\u003e\n"],["\u003cp\u003eThree possible results are returned: unspecified, eligible to transact (\u003ccode\u003eCAN_TRANSACT\u003c/code\u003e), or ineligible to transact (\u003ccode\u003eCANNOT_TRANSACT\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eIneligibility can be due to various factors, such as unsupported country or device, user ineligibility, or privacy preferences.\u003c/p\u003e\n"]]],["The transaction requirements check yields three possible results: `RESULT_TYPE_UNSPECIFIED`, indicating an undefined outcome; `CAN_TRANSACT`, signifying user eligibility; and `CANNOT_TRANSACT`, denoting ineligibility due to factors like unsupported country or platform, user ineligibility, or user refusal to share personal data. The core information is whether a user can or cannot make the transaction, or if the state is undefined.\n"],null,["# ResultType\n\nPossible results of the transaction requirements check.\n\n| Enums ||\n|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `RESULT_TYPE_UNSPECIFIED` | Unspecified. |\n| `CAN_TRANSACT` | User is eligible to perform this transaction. |\n| `CANNOT_TRANSACT` | User is not eligible to perform this transaction. This could be because of certain conditions like country or surface is not supported, user is not eligible to transact, user does not want to share personal information etc. |"]]