The reason that the camera was turned off or was shutdown
#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 the event mode, see "Event mode" in the Camera Framework Developer's Guide.
When you are in callback mode, you can retrieve the reason using the third argument from the status callback. For information about the callback arguments, see "Callback mode" in the Camera Framework Developer's Guide.