Config.FlashMode

  • Config.FlashMode selects the desired behavior of the camera flash subsystem, defaulting to OFF.

  • More information on using the device's flash is available on a separate documentation page.

  • The Enum Values for Config.FlashMode include OFF, which means the flash is off, and TORCH, which means the flash is on, if supported by the device.

public static final enum Config.FlashMode

Selects the desired behavior of the camera flash subsystem. By default, the flash mode is set to OFF . See the documentation page for more information on using the device's flash.

Inherited Methods

Enum Values

OFF

 public 
  
 static 
  
 final 
  
 Config 
 . 
 FlashMode 
  
 OFF 

Flash is off.

This is the default mode.

TORCH

 public 
  
 static 
  
 final 
  
 Config 
 . 
 FlashMode 
  
 TORCH 

Flash is on.

Note, this mode has no effect if the device does not support flash.

Design a Mobile Site
View Site in Mobile | Classic
Share by: