Seregon/StratoSDK

StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.

Rust/27.3 KB/No license
crates/strato-ui-renderer/src/platform/mac/objc/notifications/notifications.h
1#import <AppKit/AppKit.h>
2 
3// Requests authorization for notifications.
4void requestNotificationPermissions(void* callback);
5 
6// This method, implemented in Rust, invokes the callback to allow the App to
7// take action when the user has responded to the permissions request.
8void warp_on_request_notification_permissions_completed(NSUInteger outcome_type, id outcome_msg,
9 void* callback);
10 
11// Sends a desktop notification.
12void sendNotification(id, id, id, void*, BOOL);
13 
14// This method, implemented in Rust, invokes the callback to allow the App to
15// take action when a notification fails to send.
16void warp_on_notification_send_error(NSUInteger error_type, id error_msg, void* callback);
17