forked from Busivid/cordova-plugin-library-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibraryHelper.js
More file actions
25 lines (20 loc) · 752 Bytes
/
LibraryHelper.js
File metadata and controls
25 lines (20 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// LibraryHelper-phonegap
// https://github.com/coryjthompson/LibraryHelper-phonegap
//
// Author: Cory Thompson (http://coryjthompson.com)
// License: http://www.opensource.org/licenses/mit-license.php The MIT License
var LibraryHelper = function() {
}
LibraryHelper.prototype.saveImageToLibrary = function(filePath, success, error) {
Cordova.exec(success, error , "LibraryHelper", "saveImageToLibrary", [filePath]);
};
LibraryHelper.prototype.saveVideoToLibrary = function(filePath, success, error) {
Cordova.exec(success, error, "LibraryHelper", "saveVideoToLibrary", [filePath]);
};
if(!window.plugins) {
window.plugins = {};
}
if (!window.plugins.libraryHelper) {
window.plugins.libraryHelper = new LibraryHelper();
}