5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-12 23:19:29 +08:00
This commit is contained in:
popaprozac 2025-02-22 01:11:44 -08:00
parent 87f15ced04
commit 91f1704f68

View File

@ -5,16 +5,10 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#ifdef __cplusplus
extern "C" {
#endif
bool checkBundleIdentifier(void); bool checkBundleIdentifier(void);
bool requestUserNotificationAuthorization(void *completion); bool requestUserNotificationAuthorization(void *completion);
bool checkNotificationAuthorization(void); bool checkNotificationAuthorization(void);
void sendNotification(const char *identifier, const char *title, const char *subtitle, const char *body, void *completion); void sendNotification(const char *identifier, const char *title, const char *subtitle, const char *body, void *completion);
// New advanced notification functions
void sendNotificationWithActions(const char *identifier, const char *title, const char *subtitle, void sendNotificationWithActions(const char *identifier, const char *title, const char *subtitle,
const char *body, const char *categoryId, const char *actions_json, void *completion); const char *body, const char *categoryId, const char *actions_json, void *completion);
void registerNotificationCategory(const char *categoryId, const char *actions_json, bool hasReplyField, void registerNotificationCategory(const char *categoryId, const char *actions_json, bool hasReplyField,
@ -24,8 +18,4 @@ void removePendingNotification(const char *identifier);
void removeAllDeliveredNotifications(void); void removeAllDeliveredNotifications(void);
void removeDeliveredNotification(const char *identifier); void removeDeliveredNotification(const char *identifier);
#ifdef __cplusplus
}
#endif
#endif /* NOTIFICATIONS_DARWIN_H */ #endif /* NOTIFICATIONS_DARWIN_H */