Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
    
      
      
      
      
      
    
    
    
      
public class TorchState
    
    
    The camera flash torch state.
    Summary
    
      
        
          
          
        
        
          
            | Constants | 
        
        
          
            | static final int | Torch is off. | 
          
            | static final int | Torch is on. | 
        
      
     
    
      Constants
      
        
        public static final int OFF = 0
        Torch is off.
       
      
        
        public static final int ON = 1
        Torch is on.
       
     
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-05-15 UTC.
  
  
  
    
      [null,null,["Last updated 2025-05-15 UTC."],[],[]]