Package edu.wpi.first.cscore
Class VideoListener
java.lang.Object
edu.wpi.first.cscore.VideoListener
- All Implemented Interfaces:
AutoCloseable
public class VideoListener extends Object implements AutoCloseable
An event listener. This calls back to a desigated callback function when an event matching the
specified mask is generated by the library.
-
Constructor Summary
Constructors Constructor Description VideoListener(Consumer<VideoEvent> listener, int eventMask, boolean immediateNotify)
Create an event listener. -
Method Summary
-
Constructor Details
-
VideoListener
Create an event listener.- Parameters:
listener
- Listener functioneventMask
- Bitmask of VideoEvent.Type valuesimmediateNotify
- Whether callback should be immediately called with a representative set of events for the current library state.
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
-
isValid
-