ViewUnlockRequirement
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
        
          
            
            
          
          
            
              | 枚举 | 
          
          
            
              | VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED | 默认值,与 UNLOCK_NOT_REQUIRED 相同。 | 
            
              | UNLOCK_NOT_REQUIRED | 所有现有卡券的默认行为(如果未设置 ViewUnlockRequirement)。 | 
            
              | UNLOCK_REQUIRED_TO_VIEW | 每次查看卡券时都需要用户解锁设备。 如果用户在保存卡券后解除了设备锁定,系统会提示用户设置设备锁,然后才能查看卡券。 | 
          
        
      
    
  
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):2025-07-25。
  
  
  
    
      [null,null,["最后更新时间 (UTC):2025-07-25。"],[],["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"]]