Namespaces
Variants
Actions

Determining the number of cameras on a Symbian device

Jump to: navigation, search
Article Metadata

Tested with
Devices(s): Nokia E90 Communicator
Nokia N95 8GB

Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition, FP2

Article
Keywords: CCamera, CCamera::CamerasAvailable()
Created: tapiolaitinen (14 Feb 2008)
Last edited: lpvalente (18 Jul 2012)

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
}
This page was last modified on 18 July 2012, at 19:22.
116 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved