Photo.save() Method (JS)
Save the photo to disk
Returns a Promise that resolves to a string containing the filepath to the photo.
<CameraView ux:Name="Camera" />
<JavaScript>
Camera.capturePhoto()
.then(function(photo) {
photo.save()
.then(function(filePath) {
photo.release();
})
.catch(function(err) {
photo.release();
})
})
.catch(function(err) { });
</JavaScript>
Location
- Namespace
- Fuse.Controls
- Package
- Fuse.Controls.CameraView 2.9.1