Enum Class VideoSource.ConnectionStrategy

java.lang.Object
java.lang.Enum<VideoSource.ConnectionStrategy>
org.wpilib.vision.camera.VideoSource.ConnectionStrategy
All Implemented Interfaces:
Serializable, Comparable<VideoSource.ConnectionStrategy>, Constable
Enclosing class:
VideoSource

public static enum VideoSource.ConnectionStrategy extends Enum<VideoSource.ConnectionStrategy>
Connection strategy.
  • Enum Constant Details

    • AUTO_MANAGE

      public static final VideoSource.ConnectionStrategy AUTO_MANAGE
      Automatically connect or disconnect based on whether any sinks are connected to this source. This is the default behavior.
    • KEEP_OPEN

      public static final VideoSource.ConnectionStrategy KEEP_OPEN
      Try to keep the connection open regardless of whether any sinks are connected.
    • FORCE_CLOSE

      public static final VideoSource.ConnectionStrategy FORCE_CLOSE
      Never open the connection. If this is set when the connection is open, close the connection.
  • Method Details

    • values

      public static VideoSource.ConnectionStrategy[] 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 VideoSource.ConnectionStrategy 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
    • getValue

      public int getValue()
      Returns the ConnectionStrategy value.
      Returns:
      The ConnectionStrategy value.