ViewUnlockRequirement
Stay organized with collections
Save and categorize content based on your preferences.
Defines what unlock mechanism, if any, is required to view the card.
Enums |
VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED |
Default value, same as UNLOCK_NOT_REQUIRED. |
UNLOCK_NOT_REQUIRED |
Default behavior for all the existing Passes if ViewUnlockRequirement is not set. |
UNLOCK_REQUIRED_TO_VIEW |
Requires the user to unlock their device each time the pass is viewed. If the user removes their device lock after saving the pass, then they will be prompted to create a device lock before the pass can be viewed. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-23 UTC.
[null,null,["Last updated 2024-10-23 UTC."],[],["The core content outlines the requirements for viewing a digital card, focusing on device unlock mechanisms. `UNLOCK_NOT_REQUIRED` is the default, meaning no unlock is necessary. `UNLOCK_REQUIRED_TO_VIEW` mandates that the user unlock their device each time they want to see the card. If the user removes their device lock after adding a pass with this option, they will be asked to set a lock to enable pass viewing. `VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED` is the default value and behaves the same as `UNLOCK_NOT_REQUIRED`.\n"],null,[]]