CameraView.CameraType
public enum CameraView.CameraType extends Enum
Describes the type of camera that this CameraView represents.
Summary
Enum Values |
|
|---|---|
LEFT_EYE |
This CameraView represents the user's left eye. |
RIGHT_EYE |
This CameraView represents the user's right eye. |
UNKNOWN |
This CameraView represents an unknown camera view. |
Public methods |
|
|---|---|
final @NonNull EnumEntries<@NonNull CameraView.CameraType> |
Describes the type of camera that this CameraView represents. |
final @NonNull CameraView.CameraType |
Returns the enum constant of this type with the specified name. |
final @NonNull CameraView.CameraType[] |
values()Returns an array containing the constants of this enum type, in the order they're declared. |
Enum Values
LEFT_EYE
CameraView.CameraType CameraView.CameraType.LEFT_EYE
This CameraView represents the user's left eye.
RIGHT_EYE
CameraView.CameraType CameraView.CameraType.RIGHT_EYE
This CameraView represents the user's right eye.
UNKNOWN
CameraView.CameraType CameraView.CameraType.UNKNOWN
This CameraView represents an unknown camera view.
Public methods
getEntries
public final @NonNull EnumEntries<@NonNull CameraView.CameraType> getEntries()
Describes the type of camera that this CameraView represents.
valueOf
public final @NonNull CameraView.CameraType valueOf(@NonNull String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if this enum type has no constant with the specified name |
values
public final @NonNull CameraView.CameraType[] values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.