ViewUnlockRequirement
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
カードの表示に必要なロック解除メカニズム(存在する場合)を定義します。
列挙型 |
VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED |
デフォルト値。UNLOCK_NOT_REQUIRED と同じ。 |
UNLOCK_NOT_REQUIRED |
ViewUnlockRequirement が設定されていない場合、既存のすべてのパスのデフォルトの動作。 |
UNLOCK_REQUIRED_TO_VIEW |
パスを表示するたびに、ユーザーはデバイスのロックを解除する必要があります。 ユーザーがパスを保存した後にデバイスのロックを解除した場合は、パスを表示する前にデバイスロックを作成するよう求められます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["By default, passes do not require any unlock mechanism to view."],["`UNLOCK_REQUIRED_TO_VIEW` 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."],["`VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED` and `UNLOCK_NOT_REQUIRED` function identically, allowing pass viewing without unlock requirements."]]],["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"]]