Notifications.d.ts 1.42 KB
Newer Older
冷佳娟's avatar
冷佳娟 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
import { EventsRegistry } from './events/EventsRegistry';
import { Notification } from './DTO/Notification';
import { NotificationCategory } from './interfaces/NotificationCategory';
import { NotificationsIOS } from './NotificationsIOS';
import { NotificationsAndroid } from './NotificationsAndroid';
export declare class NotificationsRoot {
    readonly ios: NotificationsIOS;
    readonly android: NotificationsAndroid;
    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): void;
    /**
     * getInitialNotification
     */
    getInitialNotification(): Promise<Notification | undefined>;
    /**
     * setCategories
     */
    setCategories(categories: [NotificationCategory?]): void;
    /**
     * cancelLocalNotification
    */
    cancelLocalNotification(notificationId: string): void;
    /**
     * isRegisteredForRemoteNotifications
     */
    isRegisteredForRemoteNotifications(): Promise<boolean>;
    /**
     * Obtain the events registry instance
     */
    events(): EventsRegistry;
}