Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 2.39 KB

README.md

File metadata and controls

48 lines (35 loc) · 2.39 KB

cordova-plugin-native-spinner

Cordova plugin for showing a native spinner based on Paldom/SpinnerDialog

NPM Package: cordova-plugin-native-spinner

Platforms

Android logo iOS logo Windows logo Windows logo
4.1+ ✔ ?+ ✔ Windows Phone 8.1+ ✔ 10+ ✔

Installation

Latest stable release:

  • PhoneGap - phonegap local plugin add cordova-plugin-spinner-dialog
  • Cordova - cordova plugin add cordova-plugin-spinner-dialog

Current state from git:

  • PhoneGap - phonegap local plugin add https://github.com/greybax/cordova-plugin-native-spinner
  • Cordova - cordova plugin add https://github.com/greybax/cordova-plugin-native-spinner
cordova plugin add cordova-plugin-native-spinner
cordova prepare

Methods

  • SpinnerDialog.show
  • SpinnerDialog.hide

SpinnerDialog.show

SpinnerDialog.show([title], [message], [cancelCallback])
  • title: Spinner title (Android only). Optional. (String)
  • message: Spinner message. Optional. (String)
  • cancelCallback: Callback to invoke when spinner cancel event fired (tap or Android hardware back button event). If set, spinner dialog will be fixed, you should explicitly call SpinnerDialog.hide. Due to legacy reasons you can provide boolean value (true/false) to set spinner not cancelable. Optional, defaults to false. (Function/Boolean)

SpinnerDialog.hide

SpinnerDialog.hide();

Quirks

  • Cordova 5.0 or higher is required for Windows 10 support.
  • Windows 10 Mobile or Windows Phone 8.1 is required as desktop doesn't support StatusBar.

License

See "LICENSE". Based on https://github.com/Paldom/SpinnerDialog with lots of awesome improvements! ⭐ 🎉 🚀 ⭐