Android Utililty Methods Camera Flash Set

List of utility methods to do Camera Flash Set

Description

The list of methods to do Camera Flash Set are organized into topic(s).

Method

StringfindBestFlashModeMatch(Camera.Parameters params, String... modes)
find Best Flash Mode Match
String match = null;
List<String> flashModes = params.getSupportedFlashModes();
if (flashModes != null) {
    for (String mode : modes) {
        if (flashModes.contains(mode)) {
            match = mode;
            break;
return (match);