Package com.vaadin.flow.component.upload
Enum Class UploadCapture
- All Implemented Interfaces:
Serializable,Comparable<UploadCapture>,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse the outward-facing device input, for example the back camera of a phone.Use the user-facing device input, for example the front camera of a phone. -
Method Summary
Modifier and TypeMethodDescriptionstatic UploadCaptureReturns the enum constant of this class with the specified name.static UploadCapture[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER
Use the user-facing device input, for example the front camera of a phone. -
ENVIRONMENT
Use the outward-facing device input, for example the back camera of a phone.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-