Set CaptureMode

Returns a promise that resolves to the new CaptureMode. The values for CaptureMode can be found as constants on the CameraView. Valid values are CAPTURE_MODE_PHOTO and CAPTURE_MODE_VIDEO

<CameraView ux:Name="Camera" />
<JavaScript>
    Camera.setCaptureMode(Camera.CAPTURE_MODE_PHOTO)
        .then(function(newCaptureMode) {  })
        .catch(function(error) { });
</JavaScript>

Location

Namespace
Fuse.Controls
Package
Fuse.Controls.CameraView 1.11.2