Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Implemented PR feedback
  • Loading branch information
BeMacized committed Jun 15, 2021
commit 3a68294765e326a85af3930694e26eebd986fd95
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ public enum FlashMode {
this.strValue = strValue;
}

/**
* Tries to convert the supplied string into a {@see FlashMode} enum value.
*
* <p>When the supplied string doesn't match a valid {@see FlashMode} enum value, null is
* returned.
*
* @param modeStr String value to convert into an {@see FlashMode} enum value.
* @return Matching {@see FlashMode} enum value, or null if no match is found.
*/
public static FlashMode getValueForString(String modeStr) {
for (FlashMode value : values()) {
if (value.strValue.equals(modeStr)) return value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 The Chromium Authors. All rights reserved.
// 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.

Expand Down Expand Up @@ -35,6 +35,11 @@ public class NoiseReductionFeature extends CameraFeature<NoiseReductionMode> {
}
}

/**
* Creates a new instance of the {@link NoiseReductionFeature}.
*
* @param cameraProperties Collection of the characteristics for the current camera device.
*/
public NoiseReductionFeature(CameraProperties cameraProperties) {
super(cameraProperties);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 The Chromium Authors. All rights reserved.
// 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.

Expand All @@ -18,6 +18,15 @@ public enum NoiseReductionMode {
this.strValue = strValue;
}

/**
* Tries to convert the supplied string into a {@see NoiseReductionMode} enum value.
*
* <p>When the supplied string doesn't match a valid {@see NoiseReductionMode} enum value, null is
* returned.
*
* @param modeStr String value to convert into an {@see NoiseReductionMode} enum value.
* @return Matching {@see NoiseReductionMode} enum value, or null if no match is found.
*/
public static NoiseReductionMode getValueForString(String modeStr) {
for (NoiseReductionMode value : values()) {
if (value.strValue.equals(modeStr)) return value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 The Chromium Authors. All rights reserved.
// 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.

Expand Down