com.github.sarxos.webcam.WebcamListener Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webcam-capture Show documentation
Show all versions of webcam-capture Show documentation
This library allows you to use your PC webcam, IP or network cameras directly from Java. It's compatible with most operating systems (Windows, Linux, MacOS).
The newest version!
package com.github.sarxos.webcam;
/**
* Webcam listener.
*
* @author Bartosz Firyn (SarXos)
*/
public interface WebcamListener {
/**
* Webcam has been open.
*
* @param we a webcam event
*/
void webcamOpen(WebcamEvent we);
/**
* Webcam has been closed
*
* @param we a webcam event
*/
void webcamClosed(WebcamEvent we);
/**
* Webcam has been disposed
*
* @param we a webcam event
*/
void webcamDisposed(WebcamEvent we);
/**
* Webcam image has been obtained.
*
* @param we a webcam event
*/
void webcamImageObtained(WebcamEvent we);
}