Enum Class MediaReceiverState

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

public enum MediaReceiverState extends Enum<MediaReceiverState>
The current media receiver's state.
  • Enum Constant Details

    • AVAILABLE

      public static final MediaReceiverState AVAILABLE
      The receiver is available to be cast to.
    • CONNECTING

      public static final MediaReceiverState CONNECTING
      The receiver is starting a new cast session. A receiver temporarily enters this state when transitioning from AVAILABLE to CONNECTED.
    • CONNECTED

      public static final MediaReceiverState CONNECTED
      Content is currently cast to the receiver.
    • DISCONNECTING

      public static final MediaReceiverState DISCONNECTING
      The receiver is still connected but is in the process of disconnecting. A receiver temporarily enters this state when transitioning from CONNECTED to AVAILABLE.
    • UNAVAILABLE

      public static final MediaReceiverState UNAVAILABLE
      The receiver is not available right now (disconnected/cached).
  • Method Details

    • values

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