PassConstraints
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
패스에 배치할 수 있는 제약조건의 컨테이너입니다.
ScreenshotEligibility
패스의 스크린샷을 찍을 수 있는지 여부/방법을 정의합니다.
열거형 |
SCREENSHOT_ELIGIBILITY_UNSPECIFIED |
기본값은 ELIGIBLE과 동일합니다. |
ELIGIBLE |
Screenshot자격요건이 설정되지 않은 경우 모든 기존 패스에 대한 기본 동작입니다. Android 기기에서 스크린샷을 찍을 수 있습니다. |
INELIGIBLE |
Android 기기에서 스크린샷을 찍는 것을 허용하지 않습니다. 이전 버전의 월렛에서는 계속해서 스크린샷을 찍을 수 있습니다. |
NfcConstraint
패스에 가능한 NFC 제약 조건을 정의합니다.
열거형 |
NFC_CONSTRAINT_UNSPECIFIED |
기본값이며 지정된 제약 조건이 없습니다. |
BLOCK_PAYMENT |
패스가 열려 있는 동안에는 결제 카드가 전달되지 않습니다. |
BLOCK_CLOSED_LOOP_TRANSIT |
폐쇄 루프 교통카드는 패스가 열려 있는 동안 전달되지 않습니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\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. |"]]