This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Description
Which platform(s) does your issue occur on?
-Android
Please, provide the following version numbers that your issue occurs with:
- CLI: 8.0.2
- Cross-platform modules: 8.0.8
- Plugin(s): ^4.1.0
Please, tell us how to recreate the issue in as much detail as possible.
export class LoadingService {
indicator: LoadingIndicator;
constructor() {
this.indicator = new LoadingIndicator();
}
showLoading(text: string, details: string = '') {
const options: OptionsCommon = {
message: text,
details: details,
progress: 0.65,
margin: 10,
dimBackground: true,
color: '#4B9ED6',
backgroundColor: 'yellow',
userInteractionEnabled: false,
hideBezel: true,
mode: Mode.AnnularDeterminate,
android: {
cancelable: true,
cancelListener: function (dialog) {
console.log('Loading cancelled');
},
},
ios: {
square: false,
},
};
this.indicator.show(options);
}
hide(): void {
this.indicator.hide();
}
}