Enum Class UploadCapture

java.lang.Object
java.lang.Enum<UploadCapture>
com.vaadin.flow.component.upload.UploadCapture
All Implemented Interfaces:
Serializable, Comparable<UploadCapture>, Constable

public enum UploadCapture extends Enum<UploadCapture>
Specifies which device input to use for capturing a new file, for example a photo with the camera, instead of choosing an existing file.
Since:
25.4
See Also:
  • Enum Constant Details

    • USER

      public static final UploadCapture USER
      Use the user-facing device input, for example the front camera of a phone.
    • ENVIRONMENT

      public static final UploadCapture ENVIRONMENT
      Use the outward-facing device input, for example the back camera of a phone.
  • Method Details

    • values

      public static UploadCapture[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UploadCapture valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null