當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript ionic-native.SpinnerDialog類代碼示例

本文整理匯總了TypeScript中ionic-native.SpinnerDialog的典型用法代碼示例。如果您正苦於以下問題:TypeScript SpinnerDialog類的具體用法?TypeScript SpinnerDialog怎麽用?TypeScript SpinnerDialog使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了SpinnerDialog類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: validate

  validate() {
    SpinnerDialog.show();
    let self = this;
    cordova.plugins.camerapreview.takePicture({maxWidth:640, maxHeight:640});
    cordova.plugins.camerapreview.setOnPictureTakenHandler(function(result){
      console.log(result[0]);

      window.resolveLocalFileSystemURL('file://' + result[1], gotFile, fail);
            
      function fail(e) {
            alert('Cannot found requested file');
      }

      function gotFile(fileEntry) {
            fileEntry.file((file) => {
                var reader = new FileReader();
                reader.onloadend = function(e) {
                    var content = this.result.split(',')[1];
                    console.log(content)
                    self.accountService.validateImage(content);
                };
                // The most important point, use the readAsDatURL Method from the file plugin
                reader.readAsDataURL(file);
            });
      }
    });
  }
開發者ID:Reekoh,項目名稱:smart-lock-poc,代碼行數:27,代碼來源:home.ts

示例2:

 this.peopleService.load().then(data => {
   SpinnerDialog.hide();
   console.log(":loadPeople:", data);
   for(var i=0; i < data.length; i++){
     data[i].name.first = this.generic.captalizeName(data[i].name.first);
     data[i].name.last = this.generic.captalizeName(data[i].name.last);
     data[i].checked = false;
   }
   this.people = data;
 });
開發者ID:lucascardoso,項目名稱:app-test-plugins-ionic2,代碼行數:10,代碼來源:calling-api.ts

示例3: showDialog

 showDialog(){
   SpinnerDialog.show('SpinnerDialog',"Native Spinner dialog");
   //SpinnerDialog.hide();
 }
開發者ID:KushagraGitter,項目名稱:Ionic2Demo,代碼行數:4,代碼來源:spinner.ts

示例4: constructor

 constructor(peopleService: PeopleService, generic: Generic) {
   SpinnerDialog.show();
   this.peopleService = peopleService;
   this.generic = generic;
   this.loadPeople();
 }
開發者ID:lucascardoso,項目名稱:app-test-plugins-ionic2,代碼行數:6,代碼來源:calling-api.ts

示例5: spin

 spin(){
     SpinnerDialog.show('Some Spinner','Spinning is what I do');
 }
開發者ID:ralphowino,項目名稱:ionic-native-kitchen-sink,代碼行數:3,代碼來源:spinnerdialog.ts


注:本文中的ionic-native.SpinnerDialog類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。