Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 961 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 961 Bytes

LibraryHelper-phonegap

A PhoneGap plugin to insert into the phone's gallery. Supports IOS and Android

Install

IOS

Add LibraryHelper.h and LibraryHelper.m to your plugins directory.

Add LibraryHelper.js and include it from your html.

Add to Cordova.plist Plugins: key:libraryHelper value:LibraryHelper.

Android

Add LibraryHelper.java to src/com/greenqloud/plugin/LibraryHelper.java

Add LibraryHelper.js and include it from your html.

Add the following to res/xml/config.xml

<plugin name="LibraryHelper" value="com.greenqloud.plugin.LibraryHelper"/>

Usage

Photo

windows.plugins.libraryHelper.saveImageToLibrary(fullPath, successfullCallback, errorCallback); 

Video

windows.plugins.libraryHelper.saveVideoToLibrary(fullPath, successfullCallback, errorCallback);

Author: Cory Thompson (http://coryjthompson.com)

License: http://www.opensource.org/licenses/mit-license.php The MIT License