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_FORCECLOSE
} 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.
CAMERA_POWERDOWNREASON_FORCECLOSE
The camera was required by a higher priority application.

Your application must close the camera.

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 is one of the listed enumerations from this enumerated type. For information about the event mode, see "Event mode" in the Camera Library 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 Library Developer's Guide.