@@ -367,6 +367,74 @@ void AppendSeparator(void* inMenu) {
367367}
368368
369369
370+ bool IsNotificationAvailable (void *inctx) {
371+ WailsContext *ctx = (__bridge WailsContext*)inctx;
372+ return [ctx IsNotificationAvailable ];
373+ }
374+
375+ bool CheckBundleIdentifier (void *inctx) {
376+ WailsContext *ctx = (__bridge WailsContext*)inctx;
377+ return [ctx CheckBundleIdentifier ];
378+ }
379+
380+ bool EnsureDelegateInitialized (void *inctx) {
381+ WailsContext *ctx = (__bridge WailsContext*)inctx;
382+ return [ctx EnsureDelegateInitialized ];
383+ }
384+
385+ void RequestNotificationAuthorization (void *inctx, int channelID) {
386+ WailsContext *ctx = (__bridge WailsContext*)inctx;
387+ [ctx RequestNotificationAuthorization: channelID];
388+ }
389+
390+ void CheckNotificationAuthorization (void *inctx, int channelID) {
391+ WailsContext *ctx = (__bridge WailsContext*)inctx;
392+ [ctx CheckNotificationAuthorization: channelID];
393+ }
394+
395+ void SendNotification (void *inctx, int channelID, const char *identifier, const char *title, const char *subtitle, const char *body, const char *data_json) {
396+ WailsContext *ctx = (__bridge WailsContext*)inctx;
397+ [ctx SendNotification: channelID :identifier :title :subtitle :body :data_json];
398+ }
399+
400+ void SendNotificationWithActions (void *inctx, int channelID, const char *identifier, const char *title, const char *subtitle, const char *body, const char *categoryId, const char *actions_json) {
401+ WailsContext *ctx = (__bridge WailsContext*)inctx;
402+
403+ [ctx SendNotificationWithActions: channelID :identifier :title :subtitle :body :categoryId :actions_json];
404+ }
405+
406+ void RegisterNotificationCategory (void *inctx, int channelID, const char *categoryId, const char *actions_json, bool hasReplyField, const char *replyPlaceholder, const char *replyButtonTitle) {
407+ WailsContext *ctx = (__bridge WailsContext*)inctx;
408+
409+ [ctx RegisterNotificationCategory: channelID :categoryId :actions_json :hasReplyField :replyPlaceholder :replyButtonTitle];
410+ }
411+
412+ void RemoveNotificationCategory (void *inctx, int channelID, const char *categoryId) {
413+ WailsContext *ctx = (__bridge WailsContext*)inctx;
414+
415+ [ctx RemoveNotificationCategory: channelID :categoryId];
416+ }
417+
418+ void RemoveAllPendingNotifications (void *inctx) {
419+ WailsContext *ctx = (__bridge WailsContext*)inctx;
420+ [ctx RemoveAllPendingNotifications ];
421+ }
422+
423+ void RemovePendingNotification (void *inctx, const char *identifier) {
424+ WailsContext *ctx = (__bridge WailsContext*)inctx;
425+ [ctx RemovePendingNotification: identifier];
426+ }
427+
428+ void RemoveAllDeliveredNotifications (void *inctx) {
429+ WailsContext *ctx = (__bridge WailsContext*)inctx;
430+ [ctx RemoveAllDeliveredNotifications ];
431+ }
432+
433+ void RemoveDeliveredNotification (void *inctx, const char *identifier) {
434+ WailsContext *ctx = (__bridge WailsContext*)inctx;
435+ [ctx RemoveDeliveredNotification: identifier];
436+ }
437+
370438
371439void Run (void *inctx, const char * url) {
372440 WailsContext *ctx = (__bridge WailsContext*) inctx;
0 commit comments