ViewUnlockRequirement
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Definisce l'eventuale meccanismo di sblocco necessario per visualizzare la scheda.
Enum |
VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED |
Valore predefinito, uguale a UNLOCK_NOT_REQUIRED. |
UNLOCK_NOT_REQUIRED |
Comportamento predefinito per tutti i pass esistenti se non è impostato ViewUnlockrequisiti. |
UNLOCK_REQUIRED_TO_VIEW |
Richiede all'utente di sbloccare il proprio dispositivo ogni volta che viene visualizzata la tessera. Se l'utente rimuove il blocco del dispositivo dopo aver salvato la tessera, gli verrà chiesto di creare un blocco del dispositivo prima che la tessera possa essere visualizzata. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 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"]]