ViewUnlockRequirement
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
مشخص می کند که در صورت وجود، چه مکانیزمی برای باز کردن کارت برای مشاهده کارت لازم است.
Enums |
---|
VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED | مقدار پیشفرض، مانند UNLOCK_NOT_REQUIRED. |
UNLOCK_NOT_REQUIRED | اگر ViewUnlockRequirement تنظیم نشده باشد، رفتار پیشفرض برای همه پاسهای موجود. |
UNLOCK_REQUIRED_TO_VIEW | کاربر را ملزم میکند که قفل دستگاه خود را با هر بار مشاهده مجوز باز کند. اگر کاربر پس از ذخیره گذرنامه، قفل دستگاه خود را حذف کند، از او خواسته میشود قبل از مشاهده مجوز، یک قفل دستگاه ایجاد کند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده 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. |"]]