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