Package edu.wpi.first.cscore
Class VideoEvent
java.lang.Object
edu.wpi.first.cscore.VideoEvent
Video event.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionThe video event kind.int
Listener that was triggered.New source video mode.Source/sink/property name.int
Source property handle.Source property kind.int
The sink handle.int
The source handle.int
Event value.Event value as a string. -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoEvent.Kind
getKindFromInt
(int kind) Convert from the numerical representation of kind to an enum type.Returns the property associated with the event (if any).getSink()
Returns the sink associated with the event (if any).Returns the source associated with the event (if any).
-
Field Details
-
kind
The video event kind. -
sourceHandle
The source handle.Valid for kSource* and kSink* respectively.
-
sinkHandle
The sink handle. -
name
Source/sink/property name. -
mode
New source video mode. -
propertyHandle
Source property handle. -
propertyKind
Source property kind. -
value
Event value. -
valueStr
Event value as a string. -
listener
Listener that was triggered.
-
-
Method Details
-
getKindFromInt
Convert from the numerical representation of kind to an enum type.- Parameters:
kind
- The numerical representation of kind- Returns:
- The kind
-
getSource
Returns the source associated with the event (if any).- Returns:
- The source associated with the event (if any).
-
getSink
Returns the sink associated with the event (if any).- Returns:
- The sink associated with the event (if any).
-
getProperty
Returns the property associated with the event (if any).- Returns:
- The property associated with the event (if any).
-