Camera (deprecated)

Category: Widgets
Subcategory: Mobile

Overview

Deprecated: see the Hybrid Mobile actions for alternative https://appstore.home.mendix.com/link/app/112063/ This widget lets you capture a photo with the mobile device's camera.

Documentation

Demo url

Camera

The camera widget enables PhoneGap native camera functionality within your Mendix mobile application.

Contributing

For more information on contributing to this repository visit Contributing to a GitHub repository!

Compatibility

The camera widget functions on the latest versions of both iOS and Android. Windows Phone is currently not supported. Additionally, v3.0 drops support for Mendix 5 projects. If you wish to include the widget in an older project, please download v2.5 from the versions tab.

Offline

In version 3.0, support for offline profiles was introduced. Functionality remains the same in the new offline profile, with the exception that on save microflows and the Autosave setting will trigger an error in the client when enabled.

Configuration

Place the widget in a dataview where you want the button to be placed. Make sure this form is reachable from a mobile application.

Appearance

Image container class

The class that will be set on the image preview container.

Width

The width of the image preview.

Height

The height of the image preview.

Image Location

Where the image preview will be shown relative to the button.

Button

Label

The label text that is shown on the button.

Class

An optional class to be placed directly on the button dom node.

Behaviour

On save microflow

An optional microflow that will be triggered when the object is saved.

On save nanoflow

An optional nanoflow that will be triggered when the object is saved.

Autosave

Optional setting to auto-save an image to the contextobject. use the on save mf to commit the object and run further actions.

Picture Source

Setting that determines where the image will come from: gallery or the camera.

Image quality

This will change the image-width and height on output. Be aware that setting this higher will be more taxing and will take longer to upload. If quality width and height are both set to 0, the image will be saved full size.

Quality width

Width in pixels to scale image. Must be used with targetHeight. Aspect ratio remains constant.

Quality height

Height in pixels to scale image. Must be used with targetWidth. Aspect ratio remains constant.

Releases

Version: 4.0.3
Framework Version: 7.13.1
Release Notes: Fix documentation URL
Version: 4.0.2
Framework Version: 7.13.1
Release Notes: Fix for Android 4.4 (Thanks @mgroeneweg)
Version: 4.0.1
Framework Version: 7.13.1
Release Notes: - Fix for constructor error in IE (Fixes GitHub Issue #35)
Version: 4.0.0
Framework Version: 7.13.1
Release Notes: 1) Make button text translatable string (breaking change, after update reset you caption) 2) Add option auto start the camera, so no button click is required 3) Prevent users from editing or closing the form while the image is uploading: - This can be done directly with the auto upload or on form save - The progress message could be shown always 'During upload' (block UI) preventing user from interacting with the for. Or 'On form save' with 'Autosave', the upload can already be started while the form is edited, and only show the progress on saving the form when the upload is not completed yet.
Version: 3.3.2
Framework Version: 7.13.1
Release Notes: - When canceling the camera no longer an error message is shown. (Solving Ticket #65667) - Corrected the CSS classes in the (web modeler) preview