You Are Here:

Community: Wiki

This page was last modified on 8 October 2008, at 11:24.

CS000826 - Determining the number of cameras on the device

From Forum Nokia Wiki



ID CS000826 Creation date February 21, 2008
Platform S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition, FP2
Tested on devices Nokia E90 Communicator
Nokia N95 8GB
Category Symbian C++ Subcategory Hardware


Keywords (APIs, classes, methods, functions): CCamera, CCamera::CamerasAvailable()

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
}

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fE25E455E25BE44E2593N93E25E454E25BBE258E45E25E458E2582E2596E25E455E2583E258FE25E456E25A8E25A1E25E455E25BCE258FE25E458E25B0E2583E25E456E2595E25B4E25E455E2588E25B0E25E459E25A3E258E45E25E456E2599E25AFE25E456E25A8E25A1E25E455E25BCE258FE25E456E2597E25B6E25E455E25A6E2582E25E454E25BE44E2595E25E454E25BFE259E44E25E456E258CE2581E25E455E25BE44E2593E25E455E2589E258E44E25E457E25A8E258BE25E455E25BAE258FE25E455E259CE25A8E25E455E2589E258E44E25E455E258FE25B0E25E455E25B7E25A5E25E454E25BE44E259CX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZhardwareQ qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qfnZuserE5ftagQSxhardwareX qfnZuserE5ftagQSxs60X qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ
User Rating: qfnZuserE5FratingQNx5E2E0000X