UNPKG

@universis/common

Version:

Universis - common directives and services

24 lines (23 loc) 894 B
import { ComponentFactoryResolver, ApplicationRef, Injector } from '@angular/core'; /** * @export * @class ToastService */ export declare class ToastService { private componentFactoryResolver; private appRef; private injector; constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector); /** * Shows a toast message * @param {string} title A string which represents message title * @param {string} message A string which represents message body * @param {boolean=} autoHide A boolean which indicates whether or not message will auto hide * @param {number=} delay A number which indicates the number of milliseconds before auto hide message */ show(title: string, message: string, autoHide?: boolean, delay?: number): void; /** * Clears toast messages */ clear(): void; }