UNPKG

ng2-notifications

Version:

Angular 2 Component for Native System Notifications

34 lines (33 loc) 938 B
import { EventEmitter, OnInit, OnChanges, OnDestroy } from '@angular/core'; export declare class PushNotificationComponent implements OnInit, OnChanges, OnDestroy { title: string; body: string; icon: string; sound: string; data: any; tag: string; dir: string; lang: string; renotify: boolean; sticky: boolean; vibrate: Array<number>; noscreen: boolean; silent: boolean; closeDelay: number; onLoad: EventEmitter<any>; onShow: EventEmitter<any>; onClose: EventEmitter<any>; onError: EventEmitter<any>; onClick: EventEmitter<any>; checkCompatibility(): boolean; isPermissionGranted(permission: any): boolean; requestPermission(): any; show(): any; create(): any; close(notification: any): void; closeAll(): void; attachEventHandlers(notification: any): void; ngOnInit(): void; ngOnDestroy(): void; ngOnChanges(): void; }