Function rs2_set_notifications_callback

Function Documentation

void rs2_set_notifications_callback(const rs2_sensor *sensor, rs2_notification_callback_ptr on_notification, void *user, rs2_error **error)

set callback to get notifications from specified sensor

Parameters:
  • sensor[in] RealSense device

  • on_notification[in] function pointer to register as per-notifications callback

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