Set FlashMode

Returns a promise that resolves to the new FlashMode. The values for FlashMode can be found as constants on the CameraView. Valid values are FLASH_MODE_AUTO, FLASH_MODE_ON and FLASH_MODE_OFF

<CameraView ux:Name="Camera" />
<JavaScript>
    Camera.setFlashMode(Camera.FLASH_MODE_OFF)
        .then(function(newFlashMode) {  })
        .catch(function(error) { });
</JavaScript>

Location

Namespace
Fuse.Controls
Package
Fuse.Controls.CameraView 1.9.0