WPILibC++
2018.4.1-1232-gce8c71b
|
An event listener. More...
#include <cscore_oo.h>
Public Member Functions | |
VideoListener (std::function< void(const VideoEvent &event)> callback, int eventMask, bool immediateNotify) | |
Create an event listener. More... | |
VideoListener (const VideoListener &)=delete | |
VideoListener & | operator= (const VideoListener &)=delete |
VideoListener (VideoListener &&other) noexcept | |
VideoListener & | operator= (VideoListener &&other) noexcept |
Friends | |
void | swap (VideoListener &first, VideoListener &second) noexcept |
An event listener.
This calls back to a desigated callback function when an event matching the specified mask is generated by the library.
|
inline |
Create an event listener.
callback | Callback function |
eventMask | Bitmask of VideoEvent::Kind values |
immediateNotify | Whether callback should be immediately called with a representative set of events for the current library state. |