Updated: October 28, 2024 |
The reason that the camera was turned off or shut down
#include <camera/camera_api.h>
typedef enum { CAMERA_POWERDOWNREASON_UNKNOWN = 0, CAMERA_POWERDOWNREASON_STANDBY, CAMERA_POWERDOWNREASON_RESOURCEARBITRATION, CAMERA_POWERDOWNREASON_THERMAL, CAMERA_POWERDOWNREASON_FORCECLOSE } camera_powerdownreason_t;
Your application must close the camera.
When you use event mode, you can use camera_get_status_details() to retrieve the reason the camera was turned off. The devstatusextra argument is one of the listed enumerations from this enumerated type. For information about this mode, see Using event mode.
When you are in callback mode, you can retrieve the reason using the third argument from the status callback. For information about callback arguments, see Using callback mode.