=======================
Cordova+PhoneGap Extension for displaying a native determinate progress dialog.
=======================
=======================
Small Plugin for displaying a native progress dialog. Ideal for synchronous operations (downloading, zipping). Runnning on a background thread.
=======================
- iOS, 7.1.2+
- Android, 4.0.0+
=======================
Via Cordova CLI:
cordova plugin add https://github.com/SidneyS/cordova-plugin-progressview.git
=======================
- Wait for
deviceReady
. show()
the native progress dialog.- Update progress via
setProgress()
. hide()
the native progress dialog.
=======================
window.plugins.ProgressView.show: function (viewLabel, viewShape, isIndeterminate, themeAndroid, successCallback, errorCallback)
Shows a progress dialog.
- params viewLabel - Dialog Title, defaults to 'Please Wait...' viewShape - "CIRCLE", "BAR" isIndeterminate - True / False themeAndroid - (Android only) "TRADITIONAL", "DEVICE_DARK", "DEVICE_LIGHT", "HOLO_DARK", "HOLO_LIGHT"
window.plugins.ProgressView.setProgress: function (progressPercentage)
Updates displayed progress dialog percentage.
- params
- progressPercentage - Floating point value (0.1 - 1.0), representing the percentage to be displayed.
window.plugins.ProgressView.hide: function ()
Hides progress dialog.
window.plugins.ProgressView.setShape: function (viewShape)
Change the progress style
- params viewShape - "CIRCLE", "BAR"
LOGCAT DEBUGS to see logs in locat, use: adb logcat ProgressView:D *:S