You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spent a lot of time trying to figure out how to trigger the native camera and it wasn't until read through the source code and w3c input file specs that understood how use make Camera.getPhoto() to just trigger the native camera.
Photos I thought CameraSource.Camera was clear enough to describe that it uses the camera, while CameraSource.Photos will let you pick an existing photo and CameraSource.Prompt will prompt you with both options, but will add little descriptions for each.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.
Improve documentation Request
Plugin
@ionic/camera - Camera.getPhoto()
Description
Spent a lot of time trying to figure out how to trigger the native camera and it wasn't until read through the source code and w3c input file specs that understood how use make
Camera.getPhoto()
to just trigger the native camera.Platform(s)
web
Preferred Solution
Improve documentation (https://github.com/ionic-team/capacitor-plugins/tree/main/camera#imageoptions) to clearly explain that prop
source
should be anything butCameraSource.Photos || CameraSource.Prompt
to trigger the native camera (and not select from library) by usingcapture
when usingwebUseInput: true
. This is a non-documented behavior that can only be discovered by reading through the code here https://github.com/ionic-team/capacitor-plugins/blob/main/camera/src/web.ts#L146The text was updated successfully, but these errors were encountered: