PassConstraints
ScreenshotEligibility
枚举 |
SCREENSHOT_ELIGIBILITY_UNSPECIFIED |
默认值,与 ELIGIBLE 相同。 |
ELIGIBLE |
如果未设置 Screenshot 访问权限级别,则默认行为是所有现有卡券的默认行为。允许在 Android 设备上截取屏幕截图。 |
INELIGIBLE |
禁止在 Android 设备上截取屏幕截图。请注意,旧版 Google 钱包可能仍允许截取屏幕截图。 |
NfcConstraint
枚举 |
NFC_CONSTRAINT_UNSPECIFIED |
默认值,未指定约束条件。 |
BLOCK_PAYMENT |
卡券处于打开状态时,系统不会传送付款卡。 |
BLOCK_CLOSED_LOOP_TRANSIT |
封闭式公交卡在卡券打开时不会传送。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-13。
[null,null,["最后更新时间 (UTC):2024-11-13。"],[[["Pass constraints can be set to control screenshot eligibility and NFC behavior."],["`screenshotEligibility` determines if screenshots of the pass are allowed on Android devices, with options for eligible or ineligible."],["`nfcConstraint` allows restrictions on NFC interactions when the pass is open, such as blocking payments or closed-loop transit cards."],["The default behavior for screenshots is eligible, and there are no NFC constraints by default."]]],["Pass constraints are defined through `screenshotEligibility` and `nfcConstraint`. `screenshotEligibility` controls screenshot capture with `ELIGIBLE` (default) or `INELIGIBLE` options. `nfcConstraint` manages NFC interactions, allowing `BLOCK_PAYMENT` to prevent payment card conveyance and `BLOCK_CLOSED_LOOP_TRANSIT` to block closed-loop transit card conveyance. Unspecified settings use default behaviors: `SCREENSHOT_ELIGIBILITY_UNSPECIFIED` defaults to `ELIGIBLE` and `NFC_CONSTRAINT_UNSPECIFIED` implies no constraints.\n"]]