|
Bartosz Firyn (SarXos) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.github.sarxos.webcam.WebcamDiscoveryEvent
public class WebcamDiscoveryEvent
This event is generated when webcam has been found or lost.
Field Summary | |
---|---|
static int |
ADDED
Event type informing about newly connected webcam. |
static int |
REMOVED
Event type informing about lately disconnected webcam. |
Constructor Summary | |
---|---|
WebcamDiscoveryEvent(Webcam webcam,
int type)
Create new webcam discovery event. |
Method Summary | |
---|---|
int |
getType()
Return event type (webcam connected / disconnected) |
Webcam |
getWebcam()
Return the webcam which has been found or removed. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ADDED
public static final int REMOVED
Constructor Detail |
---|
public WebcamDiscoveryEvent(Webcam webcam, int type)
webcam
- the webcam which has been found or removedtype
- the event typeADDED
,
REMOVED
Method Detail |
---|
public Webcam getWebcam()
public int getType()
ADDED
,
REMOVED
|
Bartosz Firyn (SarXos) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |