Skip to content

Commit

Permalink
Add missing types to PushNotificationIOS
Browse files Browse the repository at this point in the history
Summary:
Adds some types referenced on the React Native webpage that aren't part of the typings.

Changelog:
[General][Fixed] - Add missing types to PushNotificationIOS

Reviewed By: christophpurrer

Differential Revision: D42040583

fbshipit-source-id: be7b86a02e30b99231f3ab35afc3222954f41cf0
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Dec 15, 2022
1 parent b15be0e commit 0793128
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Libraries/PushNotificationIOS/PushNotificationIOS.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ export interface PushNotification {
*/
getData(): Object;

/**
* Gets the thread ID on the notif
*/
getThreadId(): string;

/**
* iOS Only
* Signifies remote notification handling is complete
Expand Down Expand Up @@ -135,6 +140,21 @@ export interface PushNotificationIOSStatic {
*/
cancelAllLocalNotifications(): void;

/**
* Remove all delivered notifications from Notification Center.
*/
removeAllDeliveredNotifications(): void;

/**
* Provides you with a list of the app’s notifications that are still displayed in Notification Center.
*/
getDeliveredNotifications(callback: (notifications: Object[]) => void): void;

/**
* Removes the specified notifications from Notification Center
*/
removeDeliveredNotifications(identifiers: string[]): void;

/**
* Cancel local notifications.
* Optionally restricts the set of canceled notifications to those notifications whose userInfo fields match the corresponding fields in the userInfo argument.
Expand Down

0 comments on commit 0793128

Please sign in to comment.