@ionic/angular#ToastController TypeScript Examples
The following examples show how to use
@ionic/angular#ToastController.
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: schedule.ts From actions-test with Apache License 2.0 | 6 votes |
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 #2
Source File: home.page.ts From Elastos.Essentials.App with MIT License | 6 votes |
constructor(
public toastCtrl: ToastController,
private popoverCtrl: PopoverController,
public translate: TranslateService,
public storage: GlobalStorageService,
public theme: GlobalThemeService,
public splashScreen: SplashScreen,
public appService: AppmanagerService,
public didService: DIDManagerService,
private nav: GlobalNavService,
private modalCtrl: ModalController,
private zone: NgZone,
private appBackGroundService: GlobalAppBackgroundService,
public walletService: WalletService,
public walletNetworkService: WalletNetworkService,
private walletNetworkUIService: WalletNetworkUIService,
public walletUIService: UiService,
private walletInitService: WalletInitService,
public currencyService: CurrencyService,
private globalNetworksService: GlobalNetworksService,
private globalHiveService: GlobalHiveService,
private globalWalletConnectService: GlobalWalletConnectService,
private globalStartupService: GlobalStartupService,
private globalNavService: GlobalNavService,
private globalNative: GlobalNativeService,
private browserService: DappBrowserService,
private packetService: PacketService,
private didSessions: GlobalDIDSessionsService) {
}
Example #3
Source File: service-map.page.ts From Uber-ServeMe-System with MIT License | 6 votes |
constructor(
public toastCtrl: ToastController,
private platform: Platform,
private loadingCtrl: LoadingController,
// private ngZone: NgZone,
public route: Router,
public activatedRoute: ActivatedRoute,
public nav: NavController,
private elementRef: ElementRef,
private renderer: Renderer2,
public modalCtrl: ModalController,
public firestore: AngularFirestore,
public navCtrl: NavController,
// private dataService: DataService,
) {
// console.log('declared var:', google)
// this.activateRoute.queryParams.subscribe((data: any) => {
// console.log("data.service:", data.service)
// this.service = data.service
// console.log("service1:", this.service)
// })
}
Example #4
Source File: global.native.service.ts From Elastos.Essentials.App with MIT License | 6 votes |
constructor(
private toastCtrl: ToastController,
private alertCtrl: AlertController,
private loadingCtrl: LoadingController,
private translate: TranslateService,
private theme: GlobalThemeService,
private modalCtrl: ModalController,
private clipboard: Clipboard,
) { }
Example #5
Source File: invited-user.page.ts From fyle-mobile-app with MIT License | 6 votes |
constructor(
private networkService: NetworkService,
private fb: FormBuilder,
private toastController: ToastController,
private orgUserService: OrgUserService,
private loaderService: LoaderService,
private authService: AuthService,
private router: Router,
private trackingService: TrackingService,
private matSnackBar: MatSnackBar,
private snackbarProperties: SnackbarPropertiesService
) {}
Example #6
Source File: app.component.ts From mycoradar with MIT License | 6 votes |
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 #7
Source File: app.component.ts From actions-test with Apache License 2.0 | 6 votes |
constructor(
private menu: MenuController,
private platform: Platform,
private router: Router,
private splashScreen: SplashScreen,
private statusBar: StatusBar,
private storage: Storage,
private userData: UserData,
private swUpdate: SwUpdate,
private toastCtrl: ToastController,
) {
this.initializeApp();
}
Example #8
Source File: global.credential.types.service.ts From Elastos.Essentials.App with MIT License | 6 votes |
// Concurrency: 1
constructor(
public zone: NgZone,
public toastCtrl: ToastController,
public events: Events,
public localStorage: LocalStorage,
public native: Native,
private didService: DIDService,
private didDocumentsService: DIDDocumentsService,
private http: HttpClient
) {
}
Example #9
Source File: go-pro-media-item-detail-on-camera.component.ts From capture-lite with GNU General Public License v3.0 | 6 votes |
constructor(
private readonly location: Location,
private readonly route: ActivatedRoute,
private readonly router: Router,
public toastController: ToastController,
public alertController: AlertController,
public loadingController: LoadingController,
public goProMediaService: GoProMediaService,
public goProWiFiService: GoProWifiService
) {
this.route.queryParams.subscribe(_ => {
const state = this.router.getCurrentNavigation()?.extras.state;
if (state) {
this.mediaFile = state.goProMediaFile;
}
});
}
Example #10
Source File: overlay.service.ts From onchat-web with Apache License 2.0 | 6 votes |
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 #11
Source File: analysis.page.ts From casual-chess with GNU General Public License v3.0 | 6 votes |
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 #12
Source File: login.ts From WiLearning with GNU Affero General Public License v3.0 | 6 votes |
constructor(
public router: Router,
public i18n: I18nService,
private auth: AuthService,
private logger: LoggerService,
private profile: ProfileService,
private toastController: ToastController,
private alert: AlertController,
private http: WlhttpService,
) {
if ( this.auth.redirectUrl ) {
const index = this.auth.redirectUrl.indexOf('?');
const search = this.auth.redirectUrl.slice(index);
const url = new URLSearchParams(search);
const roler = +url.get('roler');
if (roler === ROLE.AUDIENCE || roler === ROLE.MASTER) {
this.roler = roler;
}
this.roomInit = this.room = url.get('room');
this.usernameInit = this.username = url.get('user');
this.password = url.get('password');
this.logger.debug('url: %s, role: %s, room: %s, user: %s, password: %s', this.auth.redirectUrl,
this.roler, this.room, this.username, this.password);
if(this.room && this.username && this.password) {
this.login();
}
}
}
Example #13
Source File: service-confirm.page.ts From Uber-ServeMe-System with MIT License | 6 votes |
constructor(
public router: Router,
public toastCtrl: ToastController,
private platform: Platform,
private loadingCtrl: LoadingController,
public route: Router,
public activateRoute: ActivatedRoute,
public nav: NavController,
public firestore: AngularFirestore,
) {
this.activateRoute.queryParams.subscribe(params => {
console.log('params: ', params);
if (params && params.vendor) {
this.data = JSON.parse(params.vendor);
}
if (params && params.back) {
this.back = params.back;
}
console.log('params: ', this.back);
})
}
Example #14
Source File: didsync.service.ts From Elastos.Essentials.App with MIT License | 6 votes |
constructor(
public zone: NgZone,
private translate: TranslateService,
public toastCtrl: ToastController,
public events: Events,
public popupProvider: PopupProvider,
public localStorage: LocalStorage,
private didService: DIDService,
public native: Native,
private didDocumentsService: DIDDocumentsService,
private globalPublicationService: GlobalPublicationService
) {
DIDSyncService.instance = this;
}
Example #15
Source File: service-detail.page.ts From Uber-ServeMe-System with MIT License | 6 votes |
constructor(
private homeServiceService: HomeServiceService,
private activatedRoute: ActivatedRoute,
private navCtrl: NavController,
private loadingCtrl: LoadingController,
private userService: UserService,
private toastCtrl: ToastController
) {
this.homeSeviceId = this.activatedRoute.snapshot.params['id'];
if (this.homeSeviceId) this.loadProduct();
}
Example #16
Source File: diddocuments.service.ts From Elastos.Essentials.App with MIT License | 6 votes |
constructor(
public zone: NgZone,
private translate: TranslateService,
public toastCtrl: ToastController,
public events: Events,
public popupProvider: PopupProvider,
public localStorage: LocalStorage,
private didService: DIDService,
public native: Native,
private globalHiveCacheService: GlobalHiveCacheService
) {
DIDDocumentsService.instance = this;
}
Example #17
Source File: onboarding.page.ts From mylog14 with GNU General Public License v3.0 | 6 votes |
constructor(
private readonly formBuilder: FormBuilder,
private readonly loadingService: LoadingService,
private readonly privateCouponService: PrivateCouponService,
private readonly router: Router,
private readonly toastController: ToastController,
private readonly translate: TranslateService,
private readonly dataStore: DataStoreService,
public readonly langaugeService: LanguageService,
) { }
Example #18
Source File: vendor-location.page.ts From Uber-ServeMe-System with MIT License | 6 votes |
constructor(
public toastCtrl: ToastController,
private platform: Platform,
private loadingCtrl: LoadingController,
private ngZone: NgZone,
public route: Router,
public activateRoute: ActivatedRoute,
public nav: NavController,
public user: UserService,
public homeService: HomeServiceService,
public afstore: AngularFirestore,
public toast: ToastController,
public router: Router,
) {
}
Example #19
Source File: error.service.ts From capture-lite with GNU General Public License v3.0 | 5 votes |
constructor(
private readonly translocoService: TranslocoService,
private readonly toastController: ToastController
) {}
Example #20
Source File: app.component.ts From blog2020 with MIT License | 5 votes |
constructor(private readonly httpClient: HttpClient,
private toastController: ToastController) {
}
Example #21
Source File: copy-clipboard.component.ts From ionic-pwa-example-moment with MIT License | 5 votes |
constructor(
private readonly toastController: ToastController,
private readonly translocoService: TranslocoService
) {}
Example #22
Source File: share-popover.page.ts From mylog14 with GNU General Public License v3.0 | 5 votes |
constructor(
public readonly uploadService: UploadService,
private readonly popoverCtrl: PopoverController,
private readonly toastCtrl: ToastController,
private readonly userDataRepo: UserDataRepositoryService,
) { }
Example #23
Source File: register.page.ts From Uber-ServeMe-System with MIT License | 5 votes |
constructor(
public afAuth: AngularFireAuth,
public toast: ToastController,
public router: Router,
public afstore: AngularFirestore,
public user: UserService,
) { }
Example #24
Source File: credentials.service.ts From Elastos.Essentials.App with MIT License | 5 votes |
constructor(
public zone: NgZone,
public toastCtrl: ToastController,
public events: Events,
public localStorage: LocalStorage,
public native: Native,
private didService: DIDService
) { }
Example #25
Source File: support.ts From actions-test with Apache License 2.0 | 5 votes |
constructor(
public alertCtrl: AlertController,
public toastCtrl: ToastController
) { }
Example #26
Source File: packet.service.ts From Elastos.Essentials.App with MIT License | 5 votes |
constructor(
private http: HttpClient,
private toastController: ToastController,
private globalIntentService: GlobalIntentService,
private globalNavService: GlobalNavService,
private walletNetworkService: WalletNetworkService,
private storage: GlobalStorageService
) { }