Cordova Plugin show Count Down Dialog


Developed plugin for show android native dialog and display count down except loader (Spinner) image.

Screenshots

Count 0 Count 1 Count 2 Count 3

Installation

cordova plugin add https://github.com/LokeshPatel/com-lokeshpatel-countdowndialog.git

Local Path Installation

cordova plugin add com-lokeshpatel-countdowndialog

Methods

  • CountDownDialog.show
  • CountDownDialog.hide

Count Down Dialog show default

     CountDownDialog.show();

Need to custom count down dialog :

Change fontSize,fontColor,increase/decrease time and start form 1/0.
 var option = {"countTime":"12000",
                "fontSize":"150",
                "fontColor":"#FFF000",
                "isCountStartFormOne":"true"};
 CountDownDialog.show(option);

  • countTime: Set time for count down up to Optional .(String)
  • fontSize: Set font size Optional. (String)
  • fontColor: Set font color Optional. (String)
  • isCountStartFormOne: Set true/false when start count down form 1/0 : (String)

CountDownDialog.hide

CountDownDialog.hide();

Screenshots Red Color

Count 0 Count 1 Count 2 Count 3

Popular posts from this blog

Cordova Plugin Firebase Cloud Messaging For Android

iOS Phonegap app share extension (images) with ionic

Print Hand Plugin With Cordova/PhoneGap For Android.