Bartosz Firyn (SarXos)

com.github.sarxos.webcam
Interface WebcamDiscoverySupport

All Known Implementing Classes:
WebcamDefaultDriver

public interface WebcamDiscoverySupport

This interface should be implemented by all webcam drivers which would like to support webcam devices discovery mechanism.

Author:
Bartosz Firyn (SarXos)

Method Summary
 long getScanInterval()
          Get interval between next discovery scans.
 boolean isScanPossible()
          Check if scan is possible.
 

Method Detail

getScanInterval

long getScanInterval()
Get interval between next discovery scans. Time interval is given in milliseconds.

Returns:
Time interval between next scans

isScanPossible

boolean isScanPossible()
Check if scan is possible. In some cases, even if driver support devices discovery, there can be a situation when due to various factors, scan cannot be executed (e.g. devices are busy, network is unavailable, devices registry not responding, etc). In general this method should return true.

Returns:

Bartosz Firyn (SarXos)

Copyright © 2012-2013 Bartosz Firyn (SarXos). All Rights Reserved.