RCP SDK Java Wrapper  6.61.0
com.red.rcp.RCPDiscovery Class Reference

RCPDiscovery is the class that performs camera discovery on the network. More...

Inheritance diagram for com.red.rcp.RCPDiscovery:
com.red.rcp.RCPDiscoveryListener

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RCPDiscovery()

com.red.rcp.RCPDiscovery.RCPDiscovery ( RCPDiscoveryListener  pListener)

Class constructor specifying the parent RCPDiscoveryListener.

Parameters
pListenerparent RCPDiscoveryListener

Member Function Documentation

◆ startDiscovery()

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.

◆ onCameraDiscoveryUpdate()

void com.red.rcp.RCPDiscovery.onCameraDiscoveryUpdate ( final String  cameras)

Invoked when camera discovery is complete.

The method is delegated to the parent listener.

Parameters
cameraslist of cameras discovered on the network
See also
RCPDiscoveryListener::onCameraDiscoveryUpdate

Implements com.red.rcp.RCPDiscoveryListener.


The documentation for this class was generated from the following file: