is Camera Auto White Balance Lock Supported - Android android.hardware

Android examples for android.hardware:Camera Feature

Description

is Camera Auto White Balance Lock Supported

Demo Code

import android.hardware.Camera.Parameters;

public class Main {

  private static final String AUTO_WHITE_BALANCE_LOCK_SUPPORTED = "auto-whitebalance-lock-supported";
  public static final String TRUE = "true";

  public static boolean isAutoWhiteBalanceLockSupported(Parameters params) {
    return TRUE.equals(params.get(AUTO_WHITE_BALANCE_LOCK_SUPPORTED));
  }//from   w ww.  j  ava2  s . co m

  public static boolean equals(Object a, Object b) {
    return (a == b) || (a == null ? false : a.equals(b));
  }

}

Related Tutorials