Determining the number of cameras on a Symbian device
Article Metadata
Tested with
Devices(s): Nokia E90 Communicator
Nokia N95 8GB
Nokia N95 8GB
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition, FP2
S60 3rd Edition, FP1
S60 3rd Edition, FP2
Article
Keywords: CCamera, CCamera::CamerasAvailable()
Created: tapiolaitinen
(14 Feb 2008)
Last edited: hamishwillee
(30 May 2013)
Overview
This code snippet describes how to determine the number of cameras on the device. Naturally, the same technique lets one to determine whether the device has a camera or not.
This snippet can be self-signed.
MMP file
The following libraries are required:
- LIBRARY ecam.lib
Source file
#include <ECam.h>// The number of cameras present on the device is stored in the cameras variable.
TInt cameras = CCamera::CamerasAvailable();
if (cameras == 0)
{
// The device doesn't have a camera. For example, Nokia E61
}


(no comments yet)