examples/phonegap1/plugins/cordova-plugin-media-capture/src/windows/CaptureProxy.js
function () {
                        var generateUniqueCollisionOption = Windows.Storage.CreationCollisionOption.generateUniqueName,
                            localFolder = Windows.Storage.ApplicationData.current.localFolder;

                        capturedPictureFile.copyAsync(localFolder, capturedPictureFile.name, generateUniqueCollisionOption).done(function (copiedFile) {
                            destroyCameraPreview();
                            successCallback(copiedFile);
                        }, function(err) {
                            destroyCameraPreview();
                            errorCallback(err);
                        });
                    }
function () {
                        var generateUniqueCollisionOption = Windows.Storage.CreationCollisionOption.generateUniqueName,
                            localFolder = Windows.Storage.ApplicationData.current.localFolder;

                        capturedPictureFile.copyAsync(localFolder, capturedPictureFile.name, generateUniqueCollisionOption).done(function (copiedFile) {
                            destroyCameraPreview();
                            successCallback(copiedFile);
                        }, function(err) {
                            destroyCameraPreview();
                            errorCallback(err);
                        });
                    }
function ( ) { var generateUniqueCollisionOption = Windows . Storage . CreationCollisionOption . generateUniqueName , localFolder = Windows . Storage . ApplicationData . current . localFolder ; capturedPictureFile . copyAsync ( localFolder , capturedPictureFile . name , generateUniqueCollisionOption ) . done ( function ( copiedFile ) { destroyCameraPreview ( ) ; successCallback ( copiedFile ) ; } , function ( err ) { destroyCameraPreview ( ) ; errorCallback ( err ) ; } ) ; }
Callback for Select button - copies intermediate file into persistent application's storage
Callback for Select button - copies intermediate file into persistent application s storage