PassConstraints
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
محفظه ای برای هرگونه محدودیتی که ممکن است روی پاس ها اعمال شود.
اسکرین شات واجد شرایط بودن
مشخص می کند که آیا می توان از یک پاس عکس از صفحه نمایش گرفته شود یا نه.
Enums |
---|
SCREENSHOT_ELIGIBILITY_UNSPECIFIED | مقدار پیشفرض، مانند ELIGIBLE. |
ELIGIBLE | اگر ScreenshotEligibility تنظیم نشده باشد، رفتار پیشفرض برای همه مجوزهای موجود. امکان گرفتن اسکرین شات در دستگاه های Android را می دهد. |
INELIGIBLE | گرفتن اسکرین شات در دستگاه های Android را ممنوع می کند. توجه داشته باشید که نسخههای قدیمیتر Wallet ممکن است همچنان امکان گرفتن اسکرینشات را داشته باشند. |
NfcConstraint
محدودیت های احتمالی NFC را برای پاس تعریف می کند.
Enums |
---|
NFC_CONSTRAINT_UNSPECIFIED | مقدار پیشفرض، بدون محدودیت مشخص. |
BLOCK_PAYMENT | تا زمانی که کارت باز است، کارت های پرداخت منتقل نمی شود. |
BLOCK_CLOSED_LOOP_TRANSIT | کارت های حمل و نقل حلقه بسته تا زمانی که پاس باز است منتقل نمی شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003ePass constraints can be set to control screenshot eligibility and NFC behavior.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003escreenshotEligibility\u003c/code\u003e determines if screenshots of the pass are allowed on Android devices, with options for eligible or ineligible.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003enfcConstraint\u003c/code\u003e allows restrictions on NFC interactions when the pass is open, such as blocking payments or closed-loop transit cards.\u003c/p\u003e\n"],["\u003cp\u003eThe default behavior for screenshots is eligible, and there are no NFC constraints by default.\u003c/p\u003e\n"]]],["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"],null,["# PassConstraints\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [ScreenshotEligibility](#ScreenshotEligibility)\n- [NfcConstraint](#NfcConstraint)\n\nContainer for any constraints that may be placed on passes.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"screenshotEligibility\": enum (/wallet/reference/rest/v1/PassConstraints#ScreenshotEligibility), \"nfcConstraint\": [ enum (/wallet/reference/rest/v1/PassConstraints#NfcConstraint) ] } ``` |\n\n| Fields ||\n|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| `screenshotEligibility` | `enum (`[ScreenshotEligibility](/wallet/reference/rest/v1/PassConstraints#ScreenshotEligibility)`)` The screenshot eligibility for the pass. |\n| `nfcConstraint[]` | `enum (`[NfcConstraint](/wallet/reference/rest/v1/PassConstraints#NfcConstraint)`)` The NFC constraints for the pass. |\n\nScreenshotEligibility\n---------------------\n\nDefines if/how screenshots may be taken of a pass.\n\n| Enums ||\n|--------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `SCREENSHOT_ELIGIBILITY_UNSPECIFIED` | Default value, same as ELIGIBLE. |\n| `ELIGIBLE` | Default behavior for all existing Passes if ScreenshotEligibility is not set. Allows screenshots to be taken on Android devices. |\n| `INELIGIBLE` | Disallows screenshots to be taken on Android devices. Note that older versions of Wallet may still allow screenshots to be taken. |\n\nNfcConstraint\n-------------\n\nDefines possible NFC constraints for the pass.\n\n| Enums ||\n|------------------------------|------------------------------------------------------------------------|\n| `NFC_CONSTRAINT_UNSPECIFIED` | Default value, no specified constraint. |\n| `BLOCK_PAYMENT` | Payment cards will not be conveyed while the pass is open. |\n| `BLOCK_CLOSED_LOOP_TRANSIT` | Closed loop transit cards will not be conveyed while the pass is open. |"]]