public enum FlashMode

  1. Object
  2. Enum<FlashMode>
  3. FlashMode

ImplementsComparable<FlashMode>

Flash behavior for still capture or continuous illumination.

Enum constants

OFFFlash never fires.
ONFlash fires for every still capture.
AUTOCamera decides whether to fire flash based on scene lighting.
TORCHFlash stays on continuously as a torch (also lights the preview).

Methods

public static FlashMode[] values()
public static FlashMode valueOf(String name)

Inherited methods

Enum constant details

OFF

OFF
Flash never fires.

ON

ON
Flash fires for every still capture.

AUTO

AUTO
Camera decides whether to fire flash based on scene lighting.

TORCH

TORCH
Flash stays on continuously as a torch (also lights the preview).

Method details

values

public static FlashMode[] values()

valueOf

public static FlashMode valueOf(String name)