public interface CameraDevice
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(CameraEventListener listener)
Adds the specified event listener to the camera device.
|
Response |
connect(DeviceInterface deviceInterface)
Connects the camera device with a specified device interface.
|
Response |
disconnect(DeviceInterface deviceInterface)
Disconnects the camera device with a specified device interface.
|
boolean |
equals(java.lang.Object obj) |
Response |
focus()
Does auto-focus.
|
Response |
getCameraDeviceSettings(java.util.List<CameraDeviceSetting> settings)
Gets settings for camera device
|
Response |
getCaptureSettings(java.util.List<CaptureSetting> settings)
Gets settings for capture
|
CameraEventListener[] |
getEventListeners()
Returns the event listeners of the camera device.
|
java.lang.String |
getFirmwareVersion()
Returns the firmware version of the camera device.
|
java.util.List<CameraImage> |
getImages()
Returns latest cached image list retrieved from the camera device.
|
java.lang.String |
getManufacturer()
Returns the manufacturer of the camera device.
|
java.lang.String |
getModel()
Returns the model of the camera device.
|
java.lang.String |
getSerialNumber()
Returns the serial number of the camera device.
|
CameraStatus |
getStatus()
Returns the status of the camera device.
|
java.util.List<CameraStorage> |
getStorages()
Returns the storages of the camera device.
|
boolean |
isConnected(DeviceInterface deviceInterface)
Returns
true if the camera device is connected by the interface. |
void |
removeEventListener(CameraEventListener listener)
Removes the specified event listener from the camera device.
|
Response |
setCameraDeviceSettings(java.util.List<CameraDeviceSetting> settings)
Sets settings for camera device
|
Response |
setCaptureSettings(java.util.List<CaptureSetting> settings)
Sets settings for capture
|
StartCaptureResponse |
startCapture(boolean withFocus)
Starts a capture.
|
Response |
startLiveView()
Starts liveview.
|
Response |
stopCapture()
Stops the capture.
|
Response |
stopLiveView()
Stops liveview.
|
Response |
updateImages()
Updates a cache of image list with retrieving from the camera device.
|
java.lang.String getManufacturer()
java.lang.String getModel()
java.lang.String getFirmwareVersion()
java.lang.String getSerialNumber()
void addEventListener(CameraEventListener listener)
listener
- The event listenervoid removeEventListener(CameraEventListener listener)
listener
- The event listenerCameraEventListener[] getEventListeners()
java.util.List<CameraStorage> getStorages()
CameraStatus getStatus()
java.util.List<CameraImage> getImages()
Response updateImages()
Response connect(DeviceInterface deviceInterface)
deviceInterface
- The interface for connectionResponse disconnect(DeviceInterface deviceInterface)
deviceInterface
- The interface for connectionboolean isConnected(DeviceInterface deviceInterface)
true
if the camera device is connected by the interface.deviceInterface
- The interface for connectiontrue
If the camera device is connected by the interface and
false
otherwiseResponse startLiveView()
Response stopLiveView()
Response focus()
java.lang.UnsupportedOperationException
- If the camera device is not supportedStartCaptureResponse startCapture(boolean withFocus)
withFocus
- true
If capturing with doing auto-focus (Only valid for
CaptureMethod:STILL_IMAGE)java.lang.UnsupportedOperationException
- If the camera device is not supportedResponse stopCapture()
java.lang.UnsupportedOperationException
- If the camera device is not supportedResponse getCaptureSettings(java.util.List<CaptureSetting> settings)
settings
- The settingsResponse setCaptureSettings(java.util.List<CaptureSetting> settings)
settings
- The settingsResponse getCameraDeviceSettings(java.util.List<CameraDeviceSetting> settings)
settings
- The settingsResponse setCameraDeviceSettings(java.util.List<CameraDeviceSetting> settings)
settings
- The settingsboolean equals(java.lang.Object obj)
equals
in class java.lang.Object