-
-
Notifications
You must be signed in to change notification settings - Fork 117
/
Copy pathindex.d.ts
23 lines (23 loc) · 1.4 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { SharedNotificationDelegateCommon } from './common';
export interface DelegateObserver {
userNotificationCenterDidReceiveNotificationResponseWithCompletionHandler?(center: any /* UNUserNotificationCenter */, response: any /* UNNotificationResponse */, completionHandler: () => void, next: () => void): void;
userNotificationCenterOpenSettingsForNotification?(center: any /* UNUserNotificationCenter */, notification: any /* UNNotification */, stop: () => void, next: () => void): void;
userNotificationCenterWillPresentNotificationWithCompletionHandler?(center: any /* UNUserNotificationCenter */, notification: any /* UNNotification */, completionHandler: (p1: any /* UNNotificationPresentationOptions */) => void, next: () => void): void;
observerUniqueKey?: any;
}
export declare class SharedNotificationDelegateImpl extends SharedNotificationDelegateCommon {
_observers: Array<{
observer: DelegateObserver;
priority: number;
}>;
disableUnhandledWarning: boolean;
private delegate;
constructor();
static isUNUserNotificationCenterAvailable(): boolean;
addObserver(observer: DelegateObserver, priority?: number): void;
removeObserver(observer: DelegateObserver): void;
removeObserverByUniqueKey(key: string): void;
clearObservers(): void;
private sortObservers;
}
export declare const SharedNotificationDelegate: SharedNotificationDelegateImpl;