@@ -246,85 +246,4 @@ export function OnFileDropOff() :void
246246export function CanResolveFilePaths ( ) : boolean ;
247247
248248// Resolves file paths for an array of files
249- export function ResolveFilePaths ( files : File [ ] ) : void
250-
251- // Notification types
252- export interface NotificationOptions {
253- id : string ;
254- title : string ;
255- subtitle ?: string ; // macOS and Linux only
256- body ?: string ;
257- categoryId ?: string ;
258- data ?: { [ key : string ] : any } ;
259- }
260-
261- export interface NotificationAction {
262- id ?: string ;
263- title ?: string ;
264- destructive ?: boolean ; // macOS-specific
265- }
266-
267- export interface NotificationCategory {
268- id ?: string ;
269- actions ?: NotificationAction [ ] ;
270- hasReplyField ?: boolean ;
271- replyPlaceholder ?: string ;
272- replyButtonTitle ?: string ;
273- }
274-
275- // [InitializeNotifications](https://wails.io/docs/reference/runtime/notification#initializenotifications)
276- // Initializes the notification service for the application.
277- // This must be called before sending any notifications.
278- export function InitializeNotifications ( ) : Promise < void > ;
279-
280- // [CleanupNotifications](https://wails.io/docs/reference/runtime/notification#cleanupnotifications)
281- // Cleans up notification resources and releases any held connections.
282- export function CleanupNotifications ( ) : Promise < void > ;
283-
284- // [IsNotificationAvailable](https://wails.io/docs/reference/runtime/notification#isnotificationavailable)
285- // Checks if notifications are available on the current platform.
286- export function IsNotificationAvailable ( ) : Promise < boolean > ;
287-
288- // [RequestNotificationAuthorization](https://wails.io/docs/reference/runtime/notification#requestnotificationauthorization)
289- // Requests notification authorization from the user (macOS only).
290- export function RequestNotificationAuthorization ( ) : Promise < boolean > ;
291-
292- // [CheckNotificationAuthorization](https://wails.io/docs/reference/runtime/notification#checknotificationauthorization)
293- // Checks the current notification authorization status (macOS only).
294- export function CheckNotificationAuthorization ( ) : Promise < boolean > ;
295-
296- // [SendNotification](https://wails.io/docs/reference/runtime/notification#sendnotification)
297- // Sends a basic notification with the given options.
298- export function SendNotification ( options : NotificationOptions ) : Promise < void > ;
299-
300- // [SendNotificationWithActions](https://wails.io/docs/reference/runtime/notification#sendnotificationwithactions)
301- // Sends a notification with action buttons. Requires a registered category.
302- export function SendNotificationWithActions ( options : NotificationOptions ) : Promise < void > ;
303-
304- // [RegisterNotificationCategory](https://wails.io/docs/reference/runtime/notification#registernotificationcategory)
305- // Registers a notification category that can be used with SendNotificationWithActions.
306- export function RegisterNotificationCategory ( category : NotificationCategory ) : Promise < void > ;
307-
308- // [RemoveNotificationCategory](https://wails.io/docs/reference/runtime/notification#removenotificationcategory)
309- // Removes a previously registered notification category.
310- export function RemoveNotificationCategory ( categoryId : string ) : Promise < void > ;
311-
312- // [RemoveAllPendingNotifications](https://wails.io/docs/reference/runtime/notification#removeallpendingnotifications)
313- // Removes all pending notifications from the notification center.
314- export function RemoveAllPendingNotifications ( ) : Promise < void > ;
315-
316- // [RemovePendingNotification](https://wails.io/docs/reference/runtime/notification#removependingnotification)
317- // Removes a specific pending notification by its identifier.
318- export function RemovePendingNotification ( identifier : string ) : Promise < void > ;
319-
320- // [RemoveAllDeliveredNotifications](https://wails.io/docs/reference/runtime/notification#removealldeliverednotifications)
321- // Removes all delivered notifications from the notification center.
322- export function RemoveAllDeliveredNotifications ( ) : Promise < void > ;
323-
324- // [RemoveDeliveredNotification](https://wails.io/docs/reference/runtime/notification#removedeliverednotification)
325- // Removes a specific delivered notification by its identifier.
326- export function RemoveDeliveredNotification ( identifier : string ) : Promise < void > ;
327-
328- // [RemoveNotification](https://wails.io/docs/reference/runtime/notification#removenotification)
329- // Removes a notification by its identifier (cross-platform convenience function).
330- export function RemoveNotification ( identifier : string ) : Promise < void > ;
249+ export function ResolveFilePaths ( files : File [ ] ) : void
0 commit comments