开发者

How to close native Camera automatically, after capturing a photo using camera

开发者 https://www.devze.com 2023-04-09 19:07 出处:网络
After capturing a photo using camera, How to close native Camera automatically and redirect to app, without showing a preview with save or discard options .

After capturing a photo using camera,

How to close native Camera automatically and redirect to app, without showing a preview with save or discard options .

Is this possible with Phonegap API?

Thanks Pet开发者_StackOverflower


navigator.camera.getPicture( cameraSuccess, cameraError, [ cameraOptions ] ); Description

Function camera.getPicture opens the device's default camera application so that the user can take a picture (if Camera.sourceType = Camera.PictureSourceType.CAMERA, which is the default).

Once the photo is taken, the camera application closes and your application is restored.


As preview is part of the native app, there is no way to skip it. :-(

0

精彩评论

暂无评论...
验证码 换一张
取 消