ViewUnlockRequirement
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
列舉 |
VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED |
預設值,與 UNLOCK_NOT_REQUIRED 相同。 |
UNLOCK_NOT_REQUIRED |
如未設定 ViewUnlockRequirement,所有現有票證的預設行為。 |
UNLOCK_REQUIRED_TO_VIEW |
每次查看票證時,使用者都必須解鎖裝置。 如果使用者在儲存票證後解除裝置鎖定,系統會提示使用者建立裝置鎖定,才能查看票證。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eBy default, passes do not require any unlock mechanism to view.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUNLOCK_REQUIRED_TO_VIEW\u003c/code\u003e enforces device unlock each time the pass is viewed and prompts users to create a device lock if it's removed after saving the pass.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVIEW_UNLOCK_REQUIREMENT_UNSPECIFIED\u003c/code\u003e and \u003ccode\u003eUNLOCK_NOT_REQUIRED\u003c/code\u003e function identically, allowing pass viewing without unlock requirements.\u003c/p\u003e\n"]]],["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,["# ViewUnlockRequirement\n\nDefines what unlock mechanism, if any, is required to view the card.\n\n| Enums ||\n|---------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED` | Default value, same as UNLOCK_NOT_REQUIRED. |\n| `UNLOCK_NOT_REQUIRED` | Default behavior for all the existing Passes if ViewUnlockRequirement is not set. |\n| `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. |"]]