Enum Class ResultCode

java.lang.Object
java.lang.Enum<ResultCode>
com.teamdev.jxbrowser.cast.ResultCode
All Implemented Interfaces:
Serializable, Comparable<ResultCode>, Constable

public enum ResultCode extends Enum<ResultCode>
The result code that is obtained after creating a cast session.
  • Enum Constant Details

    • UNKNOWN_ERROR

      public static final ResultCode UNKNOWN_ERROR
      The error is unknown.
    • OK

      public static final ResultCode OK
      The cast session successfully started.
    • TIMED_OUT

      public static final ResultCode TIMED_OUT
      The cast session has not been created within the specified time.
    • CAST_SESSION_NOT_FOUND

      public static final ResultCode CAST_SESSION_NOT_FOUND
      The cast session was not found.
    • RECEIVER_NOT_FOUND

      public static final ResultCode RECEIVER_NOT_FOUND
      The receiver was not found when starting the cast session.
    • INVALID_ORIGIN

      public static final ResultCode INVALID_ORIGIN
      The origin of the web content is not allowed to start a cast session.
    • NO_SUPPORTED_PROVIDER

      public static final ResultCode NO_SUPPORTED_PROVIDER
      The media source provider is not supported.
    • CANCELLED

      public static final ResultCode CANCELLED
      The cast session has been canceled, i.e. via the "Cancel" button in the screen picker.
    • CAST_SESSION_ALREADY_EXISTS

      public static final ResultCode CAST_SESSION_ALREADY_EXISTS
      The cast session can not be created since it already exists.
    • DESKTOP_PICKER_FAILED

      public static final ResultCode DESKTOP_PICKER_FAILED
      An attempt to show the screen picker has failed.
    • CAST_SESSION_ALREADY_TERMINATED

      public static final ResultCode CAST_SESSION_ALREADY_TERMINATED
      The cast session has already been terminated.
    • REDUNDANT_REQUEST

      public static final ResultCode REDUNDANT_REQUEST
      The cast request is redundant since the desired cast session is already active.
    • USER_NOT_ALLOWED

      public static final ResultCode USER_NOT_ALLOWED
      The user has declined the cast request.
    • NOTIFICATION_DISABLED

      public static final ResultCode NOTIFICATION_DISABLED
      Failed to launch session as the notifications are disabled on the receiver device.
  • Method Details

    • values

      public static ResultCode[] 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 ResultCode 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