NativeCommandsSender.d.ts 1.29 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
import { Notification } from '../DTO/Notification';
import { NotificationCompletion } from '../interfaces/NotificationCompletion';
import { NotificationPermissions } from '../interfaces/NotificationPermissions';
import { NotificationCategory } from '../interfaces/NotificationCategory';
export declare class NativeCommandsSender {
    private readonly nativeCommandsModule;
    constructor();
    postLocalNotification(notification: Notification, id: number): void;
    getInitialNotification(): Promise<Object>;
    requestPermissions(): void;
    abandonPermissions(): void;
    refreshToken(): void;
    registerPushKit(): void;
    setCategories(categories: [NotificationCategory?]): void;
    getBadgeCount(): Promise<number>;
    setBadgeCount(count: number): void;
    cancelLocalNotification(notificationId: string): void;
    cancelAllLocalNotifications(): void;
    isRegisteredForRemoteNotifications(): Promise<any>;
    checkPermissions(): Promise<NotificationPermissions>;
    removeAllDeliveredNotifications(): void;
    removeDeliveredNotifications(identifiers: Array<string>): void;
    getDeliveredNotifications(): Array<Notification>;
    finishPresentingNotification(notificationId: string, notificationCompletion: NotificationCompletion): void;
    finishHandlingAction(notificationId: string): void;
}