By Luongo Vincenzo _ @KinG-InFeT
Thanks @bormansquirrel and @smithimage
- Run into your terminal
cordova plugins add https://github.com/KinG-InFeT/NLoader.git
- [ANDROID] Go to the folder plugins/org.apache.cordova.nloader/src/android and open the NLoader.java file and replace this line
import com.luongovincenzo.tools.R;with your app id and save file
[BUILD PROBLEM?] Read This: https://github.com/KinG-InFeT/NLoader/issues/1
-
[IOS] Beware, it could happen that the framework QuartzCore.framework not added correctly (BUG of cordova?) And for not having compilation problems, please add it manually.
-
Call the plugin for run loader
var title = 'My App'; //Default title NULL (not view title and icon)
var message = 'Loading...'; //Default message "Please wait"
var cancelable = 1; //Default cancelable 0 => NO
NLoader.StartLoader(title, message, cancelable);NOTE: For the ios platform, title and cancelable parameters are not supported!
- Call the plugin for stop loader
NLoader.StopLoader();- FINISH :D
- Add spinner and network spinner in iOS version
- Initial support for iOS
- Adding personalization title
- Added customization cancellation Touch
- FIX runOnUiThread runnable on Activity
- Implemented try/catch for JSON functions
- ADD not show icon and title when the title is not declared
- Initial release (Tested with Cordova 3.3.0, platform android v4.3.1 and 4.4.2)
If you find a bug you can report it here: https://github.com/KinG-InFeT/NLoader/issues
Thanks