public enum

Config.OptionPriority

extends java.lang.Enum<Config.OptionPriority>

 java.lang.Object

↳java.lang.Enum<Config.OptionPriority>

↳androidx.camera.core.impl.Config.OptionPriority

Overview

Defines the priorities for resolving conflicting options.

Priority must be declared from high priority to low priority.

Summary

Enum Constants
ALWAYS_OVERRIDEShould only be used externally by apps.
OPTIONALThe lowest priority, it can be overridden by any other option value.
REQUIREDIt's a required option value in order to achieve expected CameraX behavior.
Methods
public static Config.OptionPriorityvalueOf(java.lang.String name)

public static Config.OptionPriorityvalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

ALWAYS_OVERRIDE

Should only be used externally by apps. It takes precedence over any other option values at the risk of causing unexpected behavior.

This should not used internally in CameraX. It conflicts when merging different values set to ALWAY_OVERRIDE.

REQUIRED

It's a required option value in order to achieve expected CameraX behavior. It takes precedence over Config.OptionPriority.OPTIONAL option values.

If apps set ALWAYS_OVERRIDE options, it'll override REQUIRED option values and can potentially cause unexpected behaviors. It conflicts when merging different values set to REQUIRED.

OPTIONAL

The lowest priority, it can be overridden by any other option value. When two option values are set as OPTIONAL, the newer value takes precedence over the old one.

Methods

public static Config.OptionPriority values()

public static Config.OptionPriority valueOf(java.lang.String name)