Function rs2_set_notifications_callback_cpp

Function Documentation

void rs2_set_notifications_callback_cpp(const rs2_sensor *sensor, rs2_notifications_callback *callback, rs2_error **error)

set callback to get notifications from specified device

Parameters:
  • sensor[in] RealSense sensor

  • callback[in] callback object created from c++ application. ownership over the callback object is moved into the relevant subdevice lock

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored