getPicture Function

The getPicture function provides access to the device's default camera application or device's photo library for retrieving a picture asynchronously.

If the SourceType is CAMERA or BOTH, the getPicture function opens the device's default camera application (if the device has a camera) so the user can take a picture. Once the picture is taken, the device's camera application closes and the Hybrid App is restored. If the device does not have a camera application, the function reports that it is not supported.