5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-12 06:59:30 +08:00
wails/v3/pkg/services/notifications/notifications_darwin.h
2025-02-22 00:34:29 -08:00

31 lines
1.1 KiB
Objective-C

//go:build darwin
#ifndef NOTIFICATIONS_DARWIN_H
#define NOTIFICATIONS_DARWIN_H
#import <Foundation/Foundation.h>
#ifdef __cplusplus
extern "C" {
#endif
bool checkBundleIdentifier(void);
bool requestUserNotificationAuthorization(void *completion);
bool checkNotificationAuthorization(void);
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,
const char *body, const char *categoryId, const char *actions_json, void *completion);
void registerNotificationCategory(const char *categoryId, const char *actions_json, bool hasReplyField,
const char *replyPlaceholder, const char *replyButtonTitle);
void removeAllPendingNotifications(void);
void removePendingNotification(const char *identifier);
void removeAllDeliveredNotifications(void);
void removeDeliveredNotification(const char *identifier);
#ifdef __cplusplus
}
#endif
#endif /* NOTIFICATIONS_DARWIN_H */