CameraViewBase.setCameraFacing(cameraFacing) Method (JS)
Set CameraFacing
Returns a promise that resolves to the new CameraFacing
. The values for CameraFacing
can be found
as constants on the CameraView
. Valid values are CAMERA_FACING_BACK
and CAMERA_FACING_BACK
<CameraView ux:Name="Camera" />
<JavaScript>
Camera.setCameraFacing(Camera.CAMERA_FACING_FRONT)
.then(function(newCameraFacing) { })
.catch(function(error) { });
</JavaScript>
Location
- Namespace
- Fuse.Controls
- Package
- Fuse.Controls.CameraView 2.9.1