NotificationsIOS.d.ts 1.54 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 46 47 48 49 50 51 52 53 54
import { Notification } from './DTO/Notification';
import { Commands } from './commands/Commands';
import { EventsRegistryIOS } from './events/EventsRegistryIOS';
export declare class NotificationsIOS {
    private readonly commands;
    private readonly eventsRegistry;
    constructor(commands: Commands, eventsRegistry: EventsRegistryIOS);
    /**
    * Request permissions to send remote notifications
    */
    registerRemoteNotifications(): void;
    /**
    * Unregister for all remote notifications received via Apple Push Notification service
    */
    abandonPermissions(): void;
    /**
   * registerPushKit
   */
    registerPushKit(): void;
    /**
     * getBadgesCount
     */
    getBadgeCount(): Promise<number>;
    /**
     * setBadgeCount
     * @param count number of the new badge count
     */
    setBadgeCount(count: number): void;
    /**
     * cancelAllLocalNotifications
     */
    cancelAllLocalNotifications(): void;
    /**
     * checkPermissions
     */
    checkPermissions(): Promise<import("./interfaces/NotificationPermissions").NotificationPermissions>;
    /**
     * removeAllDeliveredNotifications
     */
    removeAllDeliveredNotifications(): void;
    /**
     * removeDeliveredNotifications
     * @param identifiers Array of notification identifiers
     */
    removeDeliveredNotifications(identifiers: Array<string>): void;
    /**
     * getDeliveredNotifications
     */
    getDeliveredNotifications(): Array<Notification>;
    /**
     * Obtain the events registry instance
     */
    events(): EventsRegistryIOS;
}