当前位置: 首页>>代码示例>>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;未经允许,请勿转载。