Package com.teamdev.jxbrowser.cast
Enum Class ResultCode
- All Implemented Interfaces:
Serializable,Comparable<ResultCode>,Constable
The result code that is obtained after creating a cast session.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe cast session has been canceled, i.e.The cast session can not be created since it already exists.The cast session has already been terminated.The cast session was not found.An attempt to show the screen picker has failed.The origin of the web content is not allowed to start a cast session.The media source provider is not supported.Failed to launch session as the notifications are disabled on the receiver device.The cast session successfully started.The receiver was not found when starting the cast session.The cast request is redundant since the desired cast session is already active.The cast session has not been created within the specified time.The error is unknown.The user has declined the cast request. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResultCodeReturns the enum constant of this class with the specified name.static ResultCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNKNOWN_ERROR
The error is unknown. -
OK
The cast session successfully started. -
TIMED_OUT
The cast session has not been created within the specified time. -
CAST_SESSION_NOT_FOUND
The cast session was not found. -
RECEIVER_NOT_FOUND
The receiver was not found when starting the cast session. -
INVALID_ORIGIN
The origin of the web content is not allowed to start a cast session. -
NO_SUPPORTED_PROVIDER
The media source provider is not supported. -
CANCELLED
The cast session has been canceled, i.e. via the "Cancel" button in the screen picker. -
CAST_SESSION_ALREADY_EXISTS
The cast session can not be created since it already exists. -
DESKTOP_PICKER_FAILED
An attempt to show the screen picker has failed. -
CAST_SESSION_ALREADY_TERMINATED
The cast session has already been terminated. -
REDUNDANT_REQUEST
The cast request is redundant since the desired cast session is already active. -
USER_NOT_ALLOWED
The user has declined the cast request. -
NOTIFICATION_DISABLED
Failed to launch session as the notifications are disabled on the receiver device.
-
-
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
-