@@ -21,8 +21,8 @@ export interface Size {
2121export interface Screen {
2222 isCurrent : boolean ;
2323 isPrimary : boolean ;
24- width : number
25- height : number
24+ width : number ;
25+ height : number ;
2626}
2727
2828// Environment information such as platform, buildtype, ...
@@ -38,19 +38,32 @@ export interface EnvironmentInfo {
3838export function EventsEmit ( eventName : string , ...data : any ) : void ;
3939
4040// [EventsOn](https://wails.io/docs/reference/runtime/events#eventson) sets up a listener for the given event name.
41- export function EventsOn ( eventName : string , callback : ( ...data : any ) => void ) : ( ) => void ;
41+ export function EventsOn (
42+ eventName : string ,
43+ callback : ( ...data : any ) => void
44+ ) : ( ) => void ;
4245
4346// [EventsOnMultiple](https://wails.io/docs/reference/runtime/events#eventsonmultiple)
4447// sets up a listener for the given event name, but will only trigger a given number times.
45- export function EventsOnMultiple ( eventName : string , callback : ( ...data : any ) => void , maxCallbacks : number ) : ( ) => void ;
48+ export function EventsOnMultiple (
49+ eventName : string ,
50+ callback : ( ...data : any ) => void ,
51+ maxCallbacks : number
52+ ) : ( ) => void ;
4653
4754// [EventsOnce](https://wails.io/docs/reference/runtime/events#eventsonce)
4855// sets up a listener for the given event name, but will only trigger once.
49- export function EventsOnce ( eventName : string , callback : ( ...data : any ) => void ) : ( ) => void ;
56+ export function EventsOnce (
57+ eventName : string ,
58+ callback : ( ...data : any ) => void
59+ ) : ( ) => void ;
5060
5161// [EventsOff](https://wails.io/docs/reference/runtime/events#eventsoff)
5262// unregisters the listener for the given event name.
53- export function EventsOff ( eventName : string , ...additionalEventNames : string [ ] ) : void ;
63+ export function EventsOff (
64+ eventName : string ,
65+ ...additionalEventNames : string [ ]
66+ ) : void ;
5467
5568// [EventsOffAll](https://wails.io/docs/reference/runtime/events#eventsoffall)
5669// unregisters all listeners.
@@ -200,7 +213,12 @@ export function WindowIsNormal(): Promise<boolean>;
200213
201214// [WindowSetBackgroundColour](https://wails.io/docs/reference/runtime/window#windowsetbackgroundcolour)
202215// Sets the background colour of the window to the given RGBA colour definition. This colour will show through for all transparent pixels.
203- export function WindowSetBackgroundColour ( R : number , G : number , B : number , A : number ) : void ;
216+ export function WindowSetBackgroundColour (
217+ R : number ,
218+ G : number ,
219+ B : number ,
220+ A : number
221+ ) : void ;
204222
205223// [ScreenGetAll](https://wails.io/docs/reference/runtime/window#screengetall)
206224// Gets the all screens. Call this anew each time you want to refresh data from the underlying windowing system.
@@ -236,95 +254,17 @@ export function ClipboardSetText(text: string): Promise<boolean>;
236254
237255// [OnFileDrop](https://wails.io/docs/reference/runtime/draganddrop#onfiledrop)
238256// OnFileDrop listens to drag and drop events and calls the callback with the coordinates of the drop and an array of path strings.
239- export function OnFileDrop ( callback : ( x : number , y : number , paths : string [ ] ) => void , useDropTarget : boolean ) :void
257+ export function OnFileDrop (
258+ callback : ( x : number , y : number , paths : string [ ] ) => void ,
259+ useDropTarget : boolean
260+ ) : void ;
240261
241262// [OnFileDropOff](https://wails.io/docs/reference/runtime/draganddrop#dragandddropoff)
242263// OnFileDropOff removes the drag and drop listeners and handlers.
243- export function OnFileDropOff ( ) : void
264+ export function OnFileDropOff ( ) : void ;
244265
245266// Check if the file path resolver is available
246267export function CanResolveFilePaths ( ) : boolean ;
247268
248269// 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 > ;
270+ export function ResolveFilePaths ( files : File [ ] ) : void ;
0 commit comments