Class ScannerFactory
java.lang.Object
com.flir.thermalsdk.live.discovery.ScannerFactory
Factory used to create devices scanner for different connection interface types (network, USB, Bluetooth, etc.).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface used to define a creator forCameraScanner
object. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(CommunicationInterface communicationInterface) Creates aCameraScanner
for the givenCommunicationInterface
type.static ScannerFactory
Gets an instance of the factory.void
register
(CommunicationInterface communicationInterface, ScannerFactory.ScannerCreator creator) Allows to register a customScannerFactory.ScannerCreator
for a specifiedCommunicationInterface
type.
-
Method Details
-
getInstance
Gets an instance of the factory.- Returns:
- Returns an instance of the factory.
-
create
Creates aCameraScanner
for the givenCommunicationInterface
type.- Parameters:
communicationInterface
- defines an interface on which the discovery/scan will be performed- Returns:
- Returns a concrete
CameraScanner
instance.
-
register
public void register(CommunicationInterface communicationInterface, ScannerFactory.ScannerCreator creator) Allows to register a customScannerFactory.ScannerCreator
for a specifiedCommunicationInterface
type.- Parameters:
communicationInterface
- defines an interface for which the scanner will be registeredcreator
- a creator interface used to instantiate the properCameraScanner
object
-