Class event_information

Class Documentation

class event_information

Public Functions

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

check if a specific device was disconnected

Returns:

true if device disconnected, false if device connected

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

check if a specific device was added

Returns:

true if device added, false otherwise

inline device_list get_new_devices() const

returns a list of all newly connected devices

Returns:

the list of all new connected devices