RCPDiscovery is the class that performs camera discovery on the network.
More...
Public Member Functions | |
| RCPDiscovery (RCPDiscoveryListener pListener) | |
| Class constructor specifying the parent RCPDiscoveryListener. More... | |
| void | startDiscovery () |
| Starts the camera discovery process. More... | |
| void | onCameraDiscoveryUpdate (final String cameras) |
| Invoked when camera discovery is complete. More... | |
RCPDiscovery is the class that performs camera discovery on the network.
The class that instantiates an RCPDiscovery object must also be a RCPDiscoveryListener. This is because all the callbacks defined in RCPDiscoveryListener are delegated to the parent class. This allows the parent class to handle the camera callbacks directy in its own context. The delegation mechanism is thread safe and allows for the callbacks to be posted to UI threads.
This class implements private JNI calls to and from the RCP SDK. JNI is the mechanism for wrapping the RCP SDK in Java.
| com.red.rcp.RCPDiscovery.RCPDiscovery | ( | RCPDiscoveryListener | pListener | ) |
Class constructor specifying the parent RCPDiscoveryListener.
| pListener | parent RCPDiscoveryListener |
| void com.red.rcp.RCPDiscovery.startDiscovery | ( | ) |
Starts the camera discovery process.
Once the discovery process has been started, it should not be started again until the onCameraDiscoveryUpdate callback has been invoked.
| void com.red.rcp.RCPDiscovery.onCameraDiscoveryUpdate | ( | final String | cameras | ) |
Invoked when camera discovery is complete.
The method is delegated to the parent listener.
| cameras | list of cameras discovered on the network |
Implements com.red.rcp.RCPDiscoveryListener.