CaptureSession {
/* ... */
imageCapture: ImageCapture {
onImageSaved: function (id, path) {
imagePaths.append({"path": path})
listView.positionViewAtEnd()
}
}
}
TIP
For showing a preview, connect to the
imageCaptured
signal and use the
preview
signal argument as
source
of an
Image
element. An
id
signal argument is sent along both the
imageCaptured
and
imageSaved
. This value is returned from the
capture
method. Using this, the capture of an image can be traced through the complete cycle. This way, the preview can be used first and then be replaced by the properly saved image. This, however, is nothing that we do in the example.