Capture photo

Returns a Promise that resolves to a Fuse.Controls.Photo. The CaptureMode must be set to CAPTURE_MODE_PHOTO. photo holds onto the resrouces representing the captured photo, when you are done using it you must call release(). This will free up the resources. Its considered bad practice to keep more than one photo around, this might cause memory usage problems on weaker devices.

<CameraView ux:Name="Camera" />
<JavaScript>
    Camera.capturePhoto()
        .then(function(photo) {
            photo.release();
        })
        .catch(function(error) { });
</JavaScript>

Location

Namespace
Fuse.Controls
Package
Fuse.Controls.CameraView 2.9.1