5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-12 23:19:29 +08:00
wails/v3/pkg/services/notifications/notifications_darwin.h
2025-03-18 22:46:44 -07:00

20 lines
1.0 KiB
Objective-C

//go:build darwin
#ifndef NOTIFICATIONS_DARWIN_H
#define NOTIFICATIONS_DARWIN_H
#import <Foundation/Foundation.h>
bool checkBundleIdentifier(void);
void requestNotificationAuthorization(int channelID);
void checkNotificationAuthorization(int channelID);
void sendNotification(int channelID, const char *identifier, const char *title, const char *subtitle, const char *body, const char *data_json);
void sendNotificationWithActions(int channelID, const char *identifier, const char *title, const char *subtitle, const char *body, const char *categoryId, const char *actions_json);
void registerNotificationCategory(int channelID, const char *categoryId, const char *actions_json, bool hasReplyField, const char *replyPlaceholder, const char *replyButtonTitle);
void removeNotificationCategory(int channelID, const char *categoryId);
void removeAllPendingNotifications(void);
void removePendingNotification(const char *identifier);
void removeAllDeliveredNotifications(void);
void removeDeliveredNotification(const char *identifier);
#endif /* NOTIFICATIONS_DARWIN_H */