# PassConstraints

- [JSON representation](https://developers.google.com/wallet/reference/rest/v1/PassConstraints#SCHEMA_REPRESENTATION)
- [ScreenshotEligibility](https://developers.google.com/wallet/reference/rest/v1/PassConstraints#ScreenshotEligibility)
- [NfcConstraint](https://developers.google.com/wallet/reference/rest/v1/PassConstraints#NfcConstraint)

Container for any constraints that may be placed on passes.

| JSON representation |
|---|
| ``` { "screenshotEligibility": enum (`https://developers.google.com/wallet/reference/rest/v1/PassConstraints#ScreenshotEligibility`), "nfcConstraint": [ enum (`https://developers.google.com/wallet/reference/rest/v1/PassConstraints#NfcConstraint`) ] } ``` |

| Fields ||
|---|---|
| `screenshotEligibility` | ``enum (`https://developers.google.com/wallet/reference/rest/v1/PassConstraints#ScreenshotEligibility`)`` The screenshot eligibility for the pass. |
| `nfcConstraint[]` | ``enum (`https://developers.google.com/wallet/reference/rest/v1/PassConstraints#NfcConstraint`)`` The NFC constraints for the pass. |

## ScreenshotEligibility

Defines if/how screenshots may be taken of a pass.

| Enums ||
|---|---|
| `SCREENSHOT_ELIGIBILITY_UNSPECIFIED` | Default value, same as ELIGIBLE. |
| `ELIGIBLE` | Default behavior for all existing Passes if ScreenshotEligibility is not set. Allows screenshots to be taken on Android devices. |
| `INELIGIBLE` | Disallows screenshots to be taken on Android devices. Note that older versions of Wallet may still allow screenshots to be taken. |

## NfcConstraint

Defines possible NFC constraints for the pass.

| Enums ||
|---|---|
| `NFC_CONSTRAINT_UNSPECIFIED` | Default value, no specified constraint. |
| `BLOCK_PAYMENT` | Payment cards will not be conveyed while the pass is open. |
| `BLOCK_CLOSED_LOOP_TRANSIT` | Closed loop transit cards will not be conveyed while the pass is open. |