Capturing with the default camera app
Most iOS devices have a built-in camera. More recent models have two—one mounted on the rear and another on the front. Users can capture photos and shoot video using the camera app that comes pre-installed. Third-party applications can also utilize the camera with many applications simply launching the default camera app for this purpose. Once the user has finished with the camera, the third-party app is able to access the photo or video that was taken.
AIR 2.6 and above provides the
CameraUI
class, making it possible to launch and use the default camera app. This recipe will show you how to do this from Flash Professional CS5.5. AIR 2.0 and Flash CS5 do not provide camera support.
Getting ready
You will need ...
Get Flash iOS Apps Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.