camera_powerdownreason_t

The reason that the camera was turned off or was shutdown.

Synopsis:

#include <camera/camera_api.h>
 
typedef enum {
      CAMERA_POWERDOWNREASON_UNKNOWN = 0   
      CAMERA_POWERDOWNREASON_STANDBY   
      CAMERA_POWERDOWNREASON_RESOURCEARBITRATION   
      CAMERA_POWERDOWNREASON_THERMAL   
} camera_powerdownreason_t;

Data:

CAMERA_POWERDOWNREASON_UNKNOWN
The camera was turned off for an unknown reason.
CAMERA_POWERDOWNREASON_STANDBY
The camera was turned off because the device went into standby mode.
CAMERA_POWERDOWNREASON_RESOURCEARBITRATION
The camera was turned off because the shared resources used by the camera were required by another component of the operating system.
CAMERA_POWERDOWNREASON_THERMAL
The camera was turned off to prevent damage due to excessive heat.

Library:

libcamapi

Description:

When you use event mode, you can use camera_get_status_details() to retrieve the reason the camera was turned off. The devstatusextra argument one of the listed enumerated values from this data type. For information about the event mode, see About event-mode.

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 About callback mode.