本文整理匯總了TypeScript中ionic-native.SpinnerDialog.show方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript SpinnerDialog.show方法的具體用法?TypeScript SpinnerDialog.show怎麽用?TypeScript SpinnerDialog.show使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ionic-native.SpinnerDialog
的用法示例。
在下文中一共展示了SpinnerDialog.show方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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);
});
}
});
}
示例2: showDialog
showDialog(){
SpinnerDialog.show('SpinnerDialog',"Native Spinner dialog");
//SpinnerDialog.hide();
}
示例3: constructor
constructor(peopleService: PeopleService, generic: Generic) {
SpinnerDialog.show();
this.peopleService = peopleService;
this.generic = generic;
this.loadPeople();
}
示例4: spin
spin(){
SpinnerDialog.show('Some Spinner','Spinning is what I do');
}