Book Image

PhoneGap Beginners Guide (third edition)

Book Image

PhoneGap Beginners Guide (third edition)

Overview of this book

Table of Contents (22 chapters)
PhoneGap Beginner's Guide Third Edition
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Related Plugin Resources
Index

Chapter 6. Using the Contacts and Camera APIs

In the last chapter, we saw how to get the best out of the Files and Storage plugins. Now that your knowledge of PhoneGap is coming together well, it's time to add some interaction to the device itself. The main goal of this chapter is to help you to understand the usage of the Contacts API of PhoneGap and to interact with the device media using the Camera and Media Capture API.

In this chapter, you will:

  • Get an overview of the PhoneGap Contacts API and its objects and properties

  • Learn how to use the Contacts API to read and filter the contacts stored on the device

  • Understand the difference between the Camera and Capture API

  • Learn how to capture images from the device camera using the Camera API

  • Learn how to handle various media types such as images, audio, and video using the Media Capture API