UNPKG

react-native-notifications

Version:

Advanced Push Notifications (Silent, interactive notifications) for iOS & Android

61 lines (60 loc) 1.91 kB
import { EventsRegistry } from './events/EventsRegistry'; import { Notification } from './DTO/Notification'; import { NotificationCategory } from './interfaces/NotificationCategory'; import { NotificationChannel } from './interfaces/NotificationChannel'; import { NotificationsIOS } from './NotificationsIOS'; import { NotificationsAndroid } from './NotificationsAndroid'; export declare class NotificationsRoot { readonly _ios: NotificationsIOS; readonly _android: NotificationsAndroid; private readonly notificationFactory; private readonly nativeEventsReceiver; private readonly nativeCommandsSender; private readonly commands; private readonly eventsRegistry; private readonly eventsRegistryIOS; private readonly uniqueIdProvider; private readonly completionCallbackWrapper; constructor(); /** * registerRemoteNotifications */ registerRemoteNotifications(): void; /** * postLocalNotification */ postLocalNotification(notification: Notification, id: number): number; /** * getInitialNotification */ getInitialNotification(): Promise<Notification | undefined>; /** * setCategories */ setCategories(categories: [NotificationCategory?]): void; /** * cancelLocalNotification */ cancelLocalNotification(notificationId: string): void; /** * removeAllDeliveredNotifications */ removeAllDeliveredNotifications(): void; /** * isRegisteredForRemoteNotifications */ isRegisteredForRemoteNotifications(): Promise<boolean>; /** * setNotificationChannel */ setNotificationChannel(notificationChannel: NotificationChannel): void; /** * Obtain the events registry instance */ events(): EventsRegistry; /** * ios/android getters */ get ios(): NotificationsIOS; get android(): NotificationsAndroid; }