

Returns true if the application has been granted access to the device storage. Prompts the user to grant runtime permission to use external storage for saving and opening images from device gallery. RequestStoragePermissions(explanationText?: string) Returns true if the application has been granted access to the device camera. Prompts the user to grant runtime permission to use the device camera.

RequestCameraPermissions(explanationText?: string) Stops the video recording, when stopped the videoRecordingReadyEvent event will be emitted. Takes a picture of the current preview in the CameraPlus.Īndroid: various strings possible: () iOS: either 'on' or 'off' Opens the device gallery (image library) for selecting images. Toggles the flash mode on the active camera. Returns true if the device has at least one camera. If true the camera will use continuous focus when the camera detects changes of the target.Įnable/disable double tap gesture to switch camera. Name of app_resource drawable for the open gallery (image library) button. Name of app_resource drawable for the take picture (capture) button. Name of app_resource drawable for the toggle camera button. Name of app_resource drawable for the native image button when flash is off (disabled). Name of app_resource drawable for the native image button when flash is on (enabled). Can reset it before using in different views if they want to go back/forth between photo/camera and video/cameraĭefaults the camera correctly on launch. In case of enableVideo, this will be true if either the static property or the component property is true. Users should set these in a component constructor before their view creates the component if the wish to change the default values. Note: These properties need set before the initialization of the camera. If true the CameraPlus instance can record video and videos are shown in the gallery. If true the choose from gallery/library icon/button will show on the Camera Plus layout. If true the default capture (take picture) icon/button will show on the Camera Plus layout. If true the default camera toggle (front/back) icon button will show on the Camera Plus layout. If true the default flash toggle icon/button will show on the Camera Plus layout. 'single' allows one image to be selected. If true the default take picture event will save to device gallery. When confirming capture this text will be presented to the user to save the photo. When confirming capture this text will be presented to the user to retake the photo. If true the default take picture event will present a confirmation dialog before saving.

If true logs will be output in the console to help debug the Camera Plus events.

This issue shouldn't be present on real devices due to the camera being oriented correctly on the device vs. The actual camera output will be correctly oriented, it's only the preview on emulators that present the preview incorrectly. The camera in your webcam being used on emulators will likely be rotated sideways (incorrectly).
#Camera plus pro for android android
Android emulators will work with cameras if you enable your webcam. You can launch them from the simulator/emulator however the camera does not work on iOS simulators. The demo apps work best when run on a real device. Yes the camera is rotated because it's a webcam to an emulator and it's just the way life works
