blob: 0bd23945e3f7ccf81f3511892c5e49ffa80651a6 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.camera.types;
// Mirrors exposure_mode.dart
public enum ExposureMode {
auto("auto"),
locked("locked");
private final String strValue;
ExposureMode(String strValue) {
this.strValue = strValue;
}
public static ExposureMode getValueForString(String modeStr) {
for (ExposureMode value : values()) {
if (value.strValue.equals(modeStr)) return value;
}
return null;
}
@Override
public String toString() {
return strValue;
}
}