/cordova-activityindicator

Plugin for Cordova 3.0+ that allows you to show a loading spinner and a message in your Android/iOS Cordova's app.

Primary LanguageObjective-C

Cordova/PhoneGap ActivityIndicator Plugin#

Plugin for Cordova 3.0+ that allows you to show a loading spinner and a message in your Android/iOS Cordova's app.

Adding the plugin to your project

To install the plugin, use the Cordova CLI and enter the following:
cordova plugin add https://github.com/Initsogar/cordova-activityindicator

Platforms

  • Android
  • iOS

Use

To show the dialog, use the following code:
ActivityIndicator.show(message)

To hide the dialog, use the following code:
ActivityIndicator.hide()

Credits

This plugin is inspired in the following projects:
https://github.com/jdg/MBProgressHUD
https://github.com/pebois/phonegap-plugin-ProgressHUD
https://github.com/bormansquirrel/WaitingDialog