what-the-bank/sources/io/flutter/plugins/camera/features/flash/FlashMode.java

30 lines
634 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.flutter.plugins.camera.features.flash;
/* loaded from: classes6.dex */
public enum FlashMode {
off("off"),
auto("auto"),
always("always"),
torch("torch");
private final String strValue;
FlashMode(String str) {
this.strValue = str;
}
public static FlashMode getValueForString(String str) {
for (FlashMode flashMode : values()) {
if (flashMode.strValue.equals(str)) {
return flashMode;
}
}
return null;
}
@Override // java.lang.Enum
public final String toString() {
return this.strValue;
}
}