- java.lang.Object
-
- java.lang.Enum<DesktopCapturer.Result>
-
- dev.onvoid.webrtc.media.video.desktop.DesktopCapturer.Result
-
- All Implemented Interfaces:
Serializable,Comparable<DesktopCapturer.Result>
- Enclosing class:
- DesktopCapturer
public static enum DesktopCapturer.Result extends Enum<DesktopCapturer.Result>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_PERMANENTCapture has failed and will keep failing if the caller tries calling CaptureFrame() again.ERROR_TEMPORARYThere was a temporary error.MAX_VALUEERROR_PERMANENTSUCCESSThe frame was captured successfully.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DesktopCapturer.ResultvalueOf(String name)Returns the enum constant of this type with the specified name.static DesktopCapturer.Result[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final DesktopCapturer.Result SUCCESS
The frame was captured successfully.
-
ERROR_TEMPORARY
public static final DesktopCapturer.Result ERROR_TEMPORARY
There was a temporary error. The caller should continue calling CaptureFrame(), in the expectation that it will eventually recover.
-
ERROR_PERMANENT
public static final DesktopCapturer.Result ERROR_PERMANENT
Capture has failed and will keep failing if the caller tries calling CaptureFrame() again.
-
MAX_VALUE
public static final DesktopCapturer.Result MAX_VALUE
ERROR_PERMANENT
-
-
Method Detail
-
values
public static DesktopCapturer.Result[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DesktopCapturer.Result c : DesktopCapturer.Result.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DesktopCapturer.Result valueOf(String name)
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-