Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
Public Member Functions | List of all members
rs2::event_information Class Reference

#include <rs_context.hpp>

Public Member Functions

 event_information (device_list removed, device_list added)
 
bool was_removed (const rs2::device &dev) const
 
bool was_added (const rs2::device &dev) const
 
device_list get_new_devices () const
 

Constructor & Destructor Documentation

◆ event_information()

rs2::event_information::event_information ( device_list  removed,
device_list  added 
)
inline

Member Function Documentation

◆ get_new_devices()

device_list rs2::event_information::get_new_devices ( ) const
inline

returns a list of all newly connected devices

Returns
the list of all new connected devices

◆ was_added()

bool rs2::event_information::was_added ( const rs2::device dev) const
inline

check if a specific device was added

Returns
true if device added, false otherwise

◆ was_removed()

bool rs2::event_information::was_removed ( const rs2::device dev) const
inline

check if a specific device was disconnected

Returns
true if device disconnected, false if device connected

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