edu.wpi.cscore

## Class VideoListener

- java.lang.Object
- - edu.wpi.cscore.VideoListener

-     public class VideoListener
      extends java.lang.Object

  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 and Description
    `VideoListener(java.util.function.Consumer<VideoEvent> listener, int eventMask, boolean immediateNotify)` Create an event listener.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `free()`
    `boolean` | `isValid()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### VideoListener

          public VideoListener(java.util.function.Consumer<VideoEvent> listener,
                               int eventMask,
                               boolean immediateNotify)

      Create an event listener.
      Parameters:
        `listener` - Listener function
        `eventMask` - Bitmask of VideoEvent.Type values
        `immediateNotify` - Whether callback should be immediately called with a representative set of events for the current library state.

  - ### Method Detail

    - #### free

          public void free()

    - #### isValid

          public boolean isValid()