@ionic/angular#AlertController TypeScript Examples

The following examples show how to use @ionic/angular#AlertController. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: go-pro-media-list-on-camera.component.ts    From capture-lite with GNU General Public License v3.0 6 votes vote down vote up
constructor(
    private readonly location: Location,
    private readonly goProMediaService: GoProMediaService,
    private readonly router: Router,
    private readonly navCtrl: NavController,
    private readonly alertCtrl: AlertController,
    private readonly goProBluetoothService: GoProBluetoothService,
    private readonly goProWifiService: GoProWifiService,
    private readonly platform: Platform,
    private readonly errorService: ErrorService,
    public toastController: ToastController
  ) {}
Example #2
Source File: app.component.ts    From mycoradar with MIT License 6 votes vote down vote up
constructor(
        private platform: Platform,
        private splashScreen: SplashScreen,
        private statusBar: StatusBar,
        private backgroundMode: BackgroundMode,
        public toastController: ToastController,
        private pushService: PushService,
        private alertController: AlertController,
        private service: BackendAdapterService,
        private databaseSerive: DatabaseService,
        private bluetoothService: BluetoothService
    ) {
        this.initializeApp();
    }
Example #3
Source File: schedule.ts    From actions-test with Apache License 2.0 6 votes vote down vote up
constructor(
    public alertCtrl: AlertController,
    public confData: ConferenceData,
    public loadingCtrl: LoadingController,
    public modalCtrl: ModalController,
    public router: Router,
    public toastCtrl: ToastController,
    public user: UserData,
    public config: Config
  ) { }
Example #4
Source File: capture-tab.component.ts    From capture-lite with GNU General Public License v3.0 6 votes vote down vote up
constructor(
    private readonly proofRepository: ProofRepository,
    private readonly diaBackendAuthService: DiaBackendAuthService,
    private readonly diaBackendAssetRefreshingService: DiaBackendAsseRefreshingService,
    private readonly alertController: AlertController,
    private readonly translocoService: TranslocoService,
    private readonly errorService: ErrorService,
    private readonly blockingActionService: BlockingActionService
  ) {}
Example #5
Source File: profile.page.ts    From Uber-ServeMe-System with MIT License 6 votes vote down vote up
constructor(
    private http: Http, 
		private router: Router,
		private alertController: AlertController,
    public afAuth: AngularFireAuth,
    private afs: AngularFirestore,
    public user: UserService
  ) { 
    this.mainuser = afs.doc(`users/${afAuth.auth.currentUser.uid}`)
    this.sub = this.mainuser.valueChanges().subscribe(event => {
			this.lastname = event.lastname
			this.email = event.email
      this.firstname = event.firstname
      this.image = event.image
		})   
  }
Example #6
Source File: confirm-alert.service.spec.ts    From capture-lite with GNU General Public License v3.0 6 votes vote down vote up
describe('ConfirmAlert', () => {
  let service: ConfirmAlert;

  beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [SharedTestingModule],
    });
    service = TestBed.inject(ConfirmAlert);
    const alertController = TestBed.inject(AlertController);
    const htmlIonAlertElementSpy = jasmine.createSpyObj('HTMLIonAlertElement', {
      present: new Promise<void>(resolve => resolve()),
    });
    spyOn(alertController, 'create').and.resolveTo(htmlIonAlertElementSpy);
  });

  it('should be created', () => {
    expect(service).toBeTruthy();
  });

  it('should be able to present alert', () =>
    expect(service.present()).toBeTruthy());
});
Example #7
Source File: overlay.service.ts    From onchat-web with Apache License 2.0 6 votes vote down vote up
constructor(
    private globalData: GlobalData,
    private toastCtrl: ToastController,
    private alertCtrl: AlertController,
    private modalCtrl: ModalController,
    private loadingCtrl: LoadingController,
    private popoverCtrl: PopoverController,
    private actionSheetCtrl: ActionSheetController,
    private notificationCtrl: NotificationController,
    @Inject(DOCUMENT) private document: Document,
    @Inject(NAVIGATOR) private navigator: Navigator
  ) { }
Example #8
Source File: analysis.page.ts    From casual-chess with GNU General Public License v3.0 6 votes vote down vote up
constructor(
    private afs: AngularFirestore,
    private route: ActivatedRoute,
    private navCtrl: NavController,
    private http: HttpClient,
    private menuController: MenuController,
    public alertController: AlertController,
    public translate: TranslateService,
    private utils: UtilsService,
    private configurationService: ConfigurationService,
    private toast: ToastController,
    public modalController: ModalController) {
  }
Example #9
Source File: main.component.ts    From WiLearning with GNU Affero General Public License v3.0 6 votes vote down vote up
constructor(
    public profile: ProfileService,
    public peer: PeerService,
    public chat: ChatService,
    public classroom: ClassroomService,
    public i18n: I18nService,
    private menu: MenuController,
    private platform: Platform,
    private router: Router,
    private signaling: SignalingService,
    private logger: LoggerService,
    private eventbus: EventbusService,
    private popoverController: PopoverController,
    private modalController: ModalController,
    private ds: DocumentService,
    private alert: AlertController,
    private media: MediaService,
  ) {
    this.initializeApp();

    window.onunload = async (e) => {
      await this.signaling.sendClosePeer(this.classroom.bClassStarter);
    };
  }
Example #10
Source File: login.page.ts    From Uber-ServeMe-System with MIT License 6 votes vote down vote up
constructor(
    public afAuth: AngularFireAuth,
    public loadingController: LoadingController,
    private googlePlus: GooglePlus,
    private router: Router,
    private nativeStorage: NativeStorage,
    private platform: Platform,
    public alertController: AlertController,
    public toastController: ToastController,
    public user: UserService,
    public afstore: AngularFirestore,
    ) { }
Example #11
Source File: adminprovideredit.page.ts    From Elastos.Essentials.App with MIT License 6 votes vote down vote up
constructor(
    public zone: NgZone,
    public alertController:AlertController,
    private router: Router,
    private adminService: AdminService,
    private popup: PopupService,
    public theme: GlobalThemeService,
    private native: GlobalNativeService,
    private globalNav: GlobalNavService,
    private translate: TranslateService,
    // public navParams: NavParams // Err - No provider for Navparams
  ) {
    const navigation = this.router.getCurrentNavigation();
    if(navigation.extras.state) {
      const providerId = navigation.extras.state.providerId;
      Logger.log('HiveManager', 'Provider id', providerId);
      void this.init(providerId);
    }

/*     this.providerId = navParams.get('providerId');
    Logger.log('HiveManager', 'Provider id', this.providerId);
    this.init();

    this.retrieveAdminDIDPublicationStatus();
    Logger.log('HiveManager', "Editing provider:", this.managedProvider); */
  }
Example #12
Source File: alert.service.ts    From contact-tracer with MIT License 5 votes vote down vote up
constructor(private alertController: AlertController) {
    }
Example #13
Source File: mainvideo.component.ts    From WiLearning with GNU Affero General Public License v3.0 5 votes vote down vote up
constructor(
    public profile: ProfileService,
    public peer: PeerService,
    public i18n: I18nService,
    private alert: AlertController,
    private auth: AuthService,
    private logger: LoggerService,
  ) { }
Example #14
Source File: location-settings.page.ts    From Uber-ServeMe-System with MIT License 5 votes vote down vote up
constructor(
    public alertController: AlertController,
  ) { }
Example #15
Source File: error-report.service.ts    From ionic-pwa-example-moment with MIT License 5 votes vote down vote up
constructor(
    preferenceManager: RxDbPreferenceManager,
    private readonly alertController: AlertController,
    private readonly translocoService: TranslocoService
  ) {
    super(preferenceManager, 'ErrorReportService');
  }
Example #16
Source File: popup.service.ts    From Elastos.Essentials.App with MIT License 5 votes vote down vote up
constructor(
        public alertCtrl: AlertController,
        public translate: TranslateService,
        private globalNative: GlobalNativeService
    )
    {}
Example #17
Source File: dialogs.service.ts    From ionic-pwa-example-moment with MIT License 5 votes vote down vote up
constructor(
    private readonly alertController: AlertController,
    private readonly translocoService: TranslocoService
  ) {}
Example #18
Source File: sign-in.page.ts    From blog2020 with MIT License 5 votes vote down vote up
constructor(private readonly navCtrl: NavController,
              private readonly chatService: ChatService,
              private readonly alertCtrl: AlertController) {
  }
Example #19
Source File: confirm-alert.service.ts    From capture-lite with GNU General Public License v3.0 5 votes vote down vote up
constructor(
    private readonly alertController: AlertController,
    private readonly translocoService: TranslocoService
  ) {}
Example #20
Source File: popup.ts    From Elastos.Essentials.App with MIT License 5 votes vote down vote up
constructor(public alertCtrl: AlertController, public translate: TranslateService) { }
Example #21
Source File: support.ts    From actions-test with Apache License 2.0 5 votes vote down vote up
constructor(
    public alertCtrl: AlertController,
    public toastCtrl: ToastController
  ) { }
Example #22
Source File: recommendation.page.ts    From mycoradar with MIT License 5 votes vote down vote up
constructor(public plt: Platform, public alertController: AlertController) {
    }
Example #23
Source File: global.popup.service.ts    From Elastos.Essentials.App with MIT License 5 votes vote down vote up
constructor(
        public alertCtrl: AlertController,
        private popoverCtrl: PopoverController,
        private translate: TranslateService,
    ) { }