StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.
| 1 | #import <AppKit/AppKit.h> |
| 2 | |
| 3 | // Requests authorization for notifications. |
| 4 | void 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. |
| 8 | void warp_on_request_notification_permissions_completed(NSUInteger outcome_type, id outcome_msg, |
| 9 | void* callback); |
| 10 | |
| 11 | // Sends a desktop notification. |
| 12 | void 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. |
| 16 | void warp_on_notification_send_error(NSUInteger error_type, id error_msg, void* callback); |
| 17 |