electron 28.0.0-beta.9 → 29.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/checksums.json +75 -75
- package/electron.d.ts +1078 -185
- package/install.js +1 -1
- package/package.json +2 -2
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 29.0.0-alpha.1
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/typescript-definitions
|
|
@@ -35,21 +35,33 @@ declare namespace Electron {
|
|
|
35
35
|
* `true` when Chrome's accessibility support is enabled, `false` otherwise.
|
|
36
36
|
*/
|
|
37
37
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
38
|
+
/**
|
|
39
|
+
* @platform darwin,win32
|
|
40
|
+
*/
|
|
38
41
|
off(event: 'accessibility-support-changed', listener: (event: Event,
|
|
39
42
|
/**
|
|
40
43
|
* `true` when Chrome's accessibility support is enabled, `false` otherwise.
|
|
41
44
|
*/
|
|
42
45
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
46
|
+
/**
|
|
47
|
+
* @platform darwin,win32
|
|
48
|
+
*/
|
|
43
49
|
once(event: 'accessibility-support-changed', listener: (event: Event,
|
|
44
50
|
/**
|
|
45
51
|
* `true` when Chrome's accessibility support is enabled, `false` otherwise.
|
|
46
52
|
*/
|
|
47
53
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
54
|
+
/**
|
|
55
|
+
* @platform darwin,win32
|
|
56
|
+
*/
|
|
48
57
|
addListener(event: 'accessibility-support-changed', listener: (event: Event,
|
|
49
58
|
/**
|
|
50
59
|
* `true` when Chrome's accessibility support is enabled, `false` otherwise.
|
|
51
60
|
*/
|
|
52
61
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
62
|
+
/**
|
|
63
|
+
* @platform darwin,win32
|
|
64
|
+
*/
|
|
53
65
|
removeListener(event: 'accessibility-support-changed', listener: (event: Event,
|
|
54
66
|
/**
|
|
55
67
|
* `true` when Chrome's accessibility support is enabled, `false` otherwise.
|
|
@@ -65,12 +77,24 @@ declare namespace Electron {
|
|
|
65
77
|
*/
|
|
66
78
|
on(event: 'activate', listener: (event: Event,
|
|
67
79
|
hasVisibleWindows: boolean) => void): this;
|
|
80
|
+
/**
|
|
81
|
+
* @platform darwin
|
|
82
|
+
*/
|
|
68
83
|
off(event: 'activate', listener: (event: Event,
|
|
69
84
|
hasVisibleWindows: boolean) => void): this;
|
|
85
|
+
/**
|
|
86
|
+
* @platform darwin
|
|
87
|
+
*/
|
|
70
88
|
once(event: 'activate', listener: (event: Event,
|
|
71
89
|
hasVisibleWindows: boolean) => void): this;
|
|
90
|
+
/**
|
|
91
|
+
* @platform darwin
|
|
92
|
+
*/
|
|
72
93
|
addListener(event: 'activate', listener: (event: Event,
|
|
73
94
|
hasVisibleWindows: boolean) => void): this;
|
|
95
|
+
/**
|
|
96
|
+
* @platform darwin
|
|
97
|
+
*/
|
|
74
98
|
removeListener(event: 'activate', listener: (event: Event,
|
|
75
99
|
hasVisibleWindows: boolean) => void): this;
|
|
76
100
|
/**
|
|
@@ -88,6 +112,9 @@ declare namespace Electron {
|
|
|
88
112
|
* Contains app-specific state stored by the activity.
|
|
89
113
|
*/
|
|
90
114
|
userInfo: unknown) => void): this;
|
|
115
|
+
/**
|
|
116
|
+
* @platform darwin
|
|
117
|
+
*/
|
|
91
118
|
off(event: 'activity-was-continued', listener: (event: Event,
|
|
92
119
|
/**
|
|
93
120
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -97,6 +124,9 @@ declare namespace Electron {
|
|
|
97
124
|
* Contains app-specific state stored by the activity.
|
|
98
125
|
*/
|
|
99
126
|
userInfo: unknown) => void): this;
|
|
127
|
+
/**
|
|
128
|
+
* @platform darwin
|
|
129
|
+
*/
|
|
100
130
|
once(event: 'activity-was-continued', listener: (event: Event,
|
|
101
131
|
/**
|
|
102
132
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -106,6 +136,9 @@ declare namespace Electron {
|
|
|
106
136
|
* Contains app-specific state stored by the activity.
|
|
107
137
|
*/
|
|
108
138
|
userInfo: unknown) => void): this;
|
|
139
|
+
/**
|
|
140
|
+
* @platform darwin
|
|
141
|
+
*/
|
|
109
142
|
addListener(event: 'activity-was-continued', listener: (event: Event,
|
|
110
143
|
/**
|
|
111
144
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -115,6 +148,9 @@ declare namespace Electron {
|
|
|
115
148
|
* Contains app-specific state stored by the activity.
|
|
116
149
|
*/
|
|
117
150
|
userInfo: unknown) => void): this;
|
|
151
|
+
/**
|
|
152
|
+
* @platform darwin
|
|
153
|
+
*/
|
|
118
154
|
removeListener(event: 'activity-was-continued', listener: (event: Event,
|
|
119
155
|
/**
|
|
120
156
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -271,6 +307,9 @@ declare namespace Electron {
|
|
|
271
307
|
*/
|
|
272
308
|
userInfo: unknown,
|
|
273
309
|
details: ContinueActivityDetails) => void): this;
|
|
310
|
+
/**
|
|
311
|
+
* @platform darwin
|
|
312
|
+
*/
|
|
274
313
|
off(event: 'continue-activity', listener: (event: Event,
|
|
275
314
|
/**
|
|
276
315
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -281,6 +320,9 @@ declare namespace Electron {
|
|
|
281
320
|
*/
|
|
282
321
|
userInfo: unknown,
|
|
283
322
|
details: ContinueActivityDetails) => void): this;
|
|
323
|
+
/**
|
|
324
|
+
* @platform darwin
|
|
325
|
+
*/
|
|
284
326
|
once(event: 'continue-activity', listener: (event: Event,
|
|
285
327
|
/**
|
|
286
328
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -291,6 +333,9 @@ declare namespace Electron {
|
|
|
291
333
|
*/
|
|
292
334
|
userInfo: unknown,
|
|
293
335
|
details: ContinueActivityDetails) => void): this;
|
|
336
|
+
/**
|
|
337
|
+
* @platform darwin
|
|
338
|
+
*/
|
|
294
339
|
addListener(event: 'continue-activity', listener: (event: Event,
|
|
295
340
|
/**
|
|
296
341
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -301,6 +346,9 @@ declare namespace Electron {
|
|
|
301
346
|
*/
|
|
302
347
|
userInfo: unknown,
|
|
303
348
|
details: ContinueActivityDetails) => void): this;
|
|
349
|
+
/**
|
|
350
|
+
* @platform darwin
|
|
351
|
+
*/
|
|
304
352
|
removeListener(event: 'continue-activity', listener: (event: Event,
|
|
305
353
|
/**
|
|
306
354
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -326,6 +374,9 @@ declare namespace Electron {
|
|
|
326
374
|
* A string with the error's localized description.
|
|
327
375
|
*/
|
|
328
376
|
error: string) => void): this;
|
|
377
|
+
/**
|
|
378
|
+
* @platform darwin
|
|
379
|
+
*/
|
|
329
380
|
off(event: 'continue-activity-error', listener: (event: Event,
|
|
330
381
|
/**
|
|
331
382
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -335,6 +386,9 @@ declare namespace Electron {
|
|
|
335
386
|
* A string with the error's localized description.
|
|
336
387
|
*/
|
|
337
388
|
error: string) => void): this;
|
|
389
|
+
/**
|
|
390
|
+
* @platform darwin
|
|
391
|
+
*/
|
|
338
392
|
once(event: 'continue-activity-error', listener: (event: Event,
|
|
339
393
|
/**
|
|
340
394
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -344,6 +398,9 @@ declare namespace Electron {
|
|
|
344
398
|
* A string with the error's localized description.
|
|
345
399
|
*/
|
|
346
400
|
error: string) => void): this;
|
|
401
|
+
/**
|
|
402
|
+
* @platform darwin
|
|
403
|
+
*/
|
|
347
404
|
addListener(event: 'continue-activity-error', listener: (event: Event,
|
|
348
405
|
/**
|
|
349
406
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -353,6 +410,9 @@ declare namespace Electron {
|
|
|
353
410
|
* A string with the error's localized description.
|
|
354
411
|
*/
|
|
355
412
|
error: string) => void): this;
|
|
413
|
+
/**
|
|
414
|
+
* @platform darwin
|
|
415
|
+
*/
|
|
356
416
|
removeListener(event: 'continue-activity-error', listener: (event: Event,
|
|
357
417
|
/**
|
|
358
418
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -371,9 +431,21 @@ declare namespace Electron {
|
|
|
371
431
|
* @platform darwin
|
|
372
432
|
*/
|
|
373
433
|
on(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
434
|
+
/**
|
|
435
|
+
* @platform darwin
|
|
436
|
+
*/
|
|
374
437
|
off(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
438
|
+
/**
|
|
439
|
+
* @platform darwin
|
|
440
|
+
*/
|
|
375
441
|
once(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
442
|
+
/**
|
|
443
|
+
* @platform darwin
|
|
444
|
+
*/
|
|
376
445
|
addListener(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
446
|
+
/**
|
|
447
|
+
* @platform darwin
|
|
448
|
+
*/
|
|
377
449
|
removeListener(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
378
450
|
/**
|
|
379
451
|
* Emitted when the app is no longer active and doesn’t have focus. This can be
|
|
@@ -383,9 +455,21 @@ declare namespace Electron {
|
|
|
383
455
|
* @platform darwin
|
|
384
456
|
*/
|
|
385
457
|
on(event: 'did-resign-active', listener: (event: Event) => void): this;
|
|
458
|
+
/**
|
|
459
|
+
* @platform darwin
|
|
460
|
+
*/
|
|
386
461
|
off(event: 'did-resign-active', listener: (event: Event) => void): this;
|
|
462
|
+
/**
|
|
463
|
+
* @platform darwin
|
|
464
|
+
*/
|
|
387
465
|
once(event: 'did-resign-active', listener: (event: Event) => void): this;
|
|
466
|
+
/**
|
|
467
|
+
* @platform darwin
|
|
468
|
+
*/
|
|
388
469
|
addListener(event: 'did-resign-active', listener: (event: Event) => void): this;
|
|
470
|
+
/**
|
|
471
|
+
* @platform darwin
|
|
472
|
+
*/
|
|
389
473
|
removeListener(event: 'did-resign-active', listener: (event: Event) => void): this;
|
|
390
474
|
/**
|
|
391
475
|
* Emitted whenever there is a GPU info update.
|
|
@@ -395,26 +479,6 @@ declare namespace Electron {
|
|
|
395
479
|
once(event: 'gpu-info-update', listener: Function): this;
|
|
396
480
|
addListener(event: 'gpu-info-update', listener: Function): this;
|
|
397
481
|
removeListener(event: 'gpu-info-update', listener: Function): this;
|
|
398
|
-
/**
|
|
399
|
-
* Emitted when the GPU process crashes or is killed.
|
|
400
|
-
*
|
|
401
|
-
* **Deprecated:** This event is superceded by the `child-process-gone` event which
|
|
402
|
-
* contains more information about why the child process disappeared. It isn't
|
|
403
|
-
* always because it crashed. The `killed` boolean can be replaced by checking
|
|
404
|
-
* `reason === 'killed'` when you switch to that event.
|
|
405
|
-
*
|
|
406
|
-
* @deprecated
|
|
407
|
-
*/
|
|
408
|
-
on(event: 'gpu-process-crashed', listener: (event: Event,
|
|
409
|
-
killed: boolean) => void): this;
|
|
410
|
-
off(event: 'gpu-process-crashed', listener: (event: Event,
|
|
411
|
-
killed: boolean) => void): this;
|
|
412
|
-
once(event: 'gpu-process-crashed', listener: (event: Event,
|
|
413
|
-
killed: boolean) => void): this;
|
|
414
|
-
addListener(event: 'gpu-process-crashed', listener: (event: Event,
|
|
415
|
-
killed: boolean) => void): this;
|
|
416
|
-
removeListener(event: 'gpu-process-crashed', listener: (event: Event,
|
|
417
|
-
killed: boolean) => void): this;
|
|
418
482
|
/**
|
|
419
483
|
* Emitted when `webContents` wants to do basic auth.
|
|
420
484
|
*
|
|
@@ -458,9 +522,21 @@ declare namespace Electron {
|
|
|
458
522
|
* @platform darwin
|
|
459
523
|
*/
|
|
460
524
|
on(event: 'new-window-for-tab', listener: (event: Event) => void): this;
|
|
525
|
+
/**
|
|
526
|
+
* @platform darwin
|
|
527
|
+
*/
|
|
461
528
|
off(event: 'new-window-for-tab', listener: (event: Event) => void): this;
|
|
529
|
+
/**
|
|
530
|
+
* @platform darwin
|
|
531
|
+
*/
|
|
462
532
|
once(event: 'new-window-for-tab', listener: (event: Event) => void): this;
|
|
533
|
+
/**
|
|
534
|
+
* @platform darwin
|
|
535
|
+
*/
|
|
463
536
|
addListener(event: 'new-window-for-tab', listener: (event: Event) => void): this;
|
|
537
|
+
/**
|
|
538
|
+
* @platform darwin
|
|
539
|
+
*/
|
|
464
540
|
removeListener(event: 'new-window-for-tab', listener: (event: Event) => void): this;
|
|
465
541
|
/**
|
|
466
542
|
* Emitted when the user wants to open a file with the application. The `open-file`
|
|
@@ -479,12 +555,24 @@ declare namespace Electron {
|
|
|
479
555
|
*/
|
|
480
556
|
on(event: 'open-file', listener: (event: Event,
|
|
481
557
|
path: string) => void): this;
|
|
558
|
+
/**
|
|
559
|
+
* @platform darwin
|
|
560
|
+
*/
|
|
482
561
|
off(event: 'open-file', listener: (event: Event,
|
|
483
562
|
path: string) => void): this;
|
|
563
|
+
/**
|
|
564
|
+
* @platform darwin
|
|
565
|
+
*/
|
|
484
566
|
once(event: 'open-file', listener: (event: Event,
|
|
485
567
|
path: string) => void): this;
|
|
568
|
+
/**
|
|
569
|
+
* @platform darwin
|
|
570
|
+
*/
|
|
486
571
|
addListener(event: 'open-file', listener: (event: Event,
|
|
487
572
|
path: string) => void): this;
|
|
573
|
+
/**
|
|
574
|
+
* @platform darwin
|
|
575
|
+
*/
|
|
488
576
|
removeListener(event: 'open-file', listener: (event: Event,
|
|
489
577
|
path: string) => void): this;
|
|
490
578
|
/**
|
|
@@ -501,12 +589,24 @@ declare namespace Electron {
|
|
|
501
589
|
*/
|
|
502
590
|
on(event: 'open-url', listener: (event: Event,
|
|
503
591
|
url: string) => void): this;
|
|
592
|
+
/**
|
|
593
|
+
* @platform darwin
|
|
594
|
+
*/
|
|
504
595
|
off(event: 'open-url', listener: (event: Event,
|
|
505
596
|
url: string) => void): this;
|
|
597
|
+
/**
|
|
598
|
+
* @platform darwin
|
|
599
|
+
*/
|
|
506
600
|
once(event: 'open-url', listener: (event: Event,
|
|
507
601
|
url: string) => void): this;
|
|
602
|
+
/**
|
|
603
|
+
* @platform darwin
|
|
604
|
+
*/
|
|
508
605
|
addListener(event: 'open-url', listener: (event: Event,
|
|
509
606
|
url: string) => void): this;
|
|
607
|
+
/**
|
|
608
|
+
* @platform darwin
|
|
609
|
+
*/
|
|
510
610
|
removeListener(event: 'open-url', listener: (event: Event,
|
|
511
611
|
url: string) => void): this;
|
|
512
612
|
/**
|
|
@@ -577,31 +677,6 @@ declare namespace Electron {
|
|
|
577
677
|
removeListener(event: 'render-process-gone', listener: (event: Event,
|
|
578
678
|
webContents: WebContents,
|
|
579
679
|
details: RenderProcessGoneDetails) => void): this;
|
|
580
|
-
/**
|
|
581
|
-
* Emitted when the renderer process of `webContents` crashes or is killed.
|
|
582
|
-
*
|
|
583
|
-
* **Deprecated:** This event is superceded by the `render-process-gone` event
|
|
584
|
-
* which contains more information about why the render process disappeared. It
|
|
585
|
-
* isn't always because it crashed. The `killed` boolean can be replaced by
|
|
586
|
-
* checking `reason === 'killed'` when you switch to that event.
|
|
587
|
-
*
|
|
588
|
-
* @deprecated
|
|
589
|
-
*/
|
|
590
|
-
on(event: 'renderer-process-crashed', listener: (event: Event,
|
|
591
|
-
webContents: WebContents,
|
|
592
|
-
killed: boolean) => void): this;
|
|
593
|
-
off(event: 'renderer-process-crashed', listener: (event: Event,
|
|
594
|
-
webContents: WebContents,
|
|
595
|
-
killed: boolean) => void): this;
|
|
596
|
-
once(event: 'renderer-process-crashed', listener: (event: Event,
|
|
597
|
-
webContents: WebContents,
|
|
598
|
-
killed: boolean) => void): this;
|
|
599
|
-
addListener(event: 'renderer-process-crashed', listener: (event: Event,
|
|
600
|
-
webContents: WebContents,
|
|
601
|
-
killed: boolean) => void): this;
|
|
602
|
-
removeListener(event: 'renderer-process-crashed', listener: (event: Event,
|
|
603
|
-
webContents: WebContents,
|
|
604
|
-
killed: boolean) => void): this;
|
|
605
680
|
/**
|
|
606
681
|
* This event will be emitted inside the primary instance of your application when
|
|
607
682
|
* a second instance has been executed and calls `app.requestSingleInstanceLock()`.
|
|
@@ -748,6 +823,9 @@ declare namespace Electron {
|
|
|
748
823
|
* Contains app-specific state stored by the activity.
|
|
749
824
|
*/
|
|
750
825
|
userInfo: unknown) => void): this;
|
|
826
|
+
/**
|
|
827
|
+
* @platform darwin
|
|
828
|
+
*/
|
|
751
829
|
off(event: 'update-activity-state', listener: (event: Event,
|
|
752
830
|
/**
|
|
753
831
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -757,6 +835,9 @@ declare namespace Electron {
|
|
|
757
835
|
* Contains app-specific state stored by the activity.
|
|
758
836
|
*/
|
|
759
837
|
userInfo: unknown) => void): this;
|
|
838
|
+
/**
|
|
839
|
+
* @platform darwin
|
|
840
|
+
*/
|
|
760
841
|
once(event: 'update-activity-state', listener: (event: Event,
|
|
761
842
|
/**
|
|
762
843
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -766,6 +847,9 @@ declare namespace Electron {
|
|
|
766
847
|
* Contains app-specific state stored by the activity.
|
|
767
848
|
*/
|
|
768
849
|
userInfo: unknown) => void): this;
|
|
850
|
+
/**
|
|
851
|
+
* @platform darwin
|
|
852
|
+
*/
|
|
769
853
|
addListener(event: 'update-activity-state', listener: (event: Event,
|
|
770
854
|
/**
|
|
771
855
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -775,6 +859,9 @@ declare namespace Electron {
|
|
|
775
859
|
* Contains app-specific state stored by the activity.
|
|
776
860
|
*/
|
|
777
861
|
userInfo: unknown) => void): this;
|
|
862
|
+
/**
|
|
863
|
+
* @platform darwin
|
|
864
|
+
*/
|
|
778
865
|
removeListener(event: 'update-activity-state', listener: (event: Event,
|
|
779
866
|
/**
|
|
780
867
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -809,21 +896,33 @@ declare namespace Electron {
|
|
|
809
896
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
810
897
|
*/
|
|
811
898
|
type: string) => void): this;
|
|
899
|
+
/**
|
|
900
|
+
* @platform darwin
|
|
901
|
+
*/
|
|
812
902
|
off(event: 'will-continue-activity', listener: (event: Event,
|
|
813
903
|
/**
|
|
814
904
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
815
905
|
*/
|
|
816
906
|
type: string) => void): this;
|
|
907
|
+
/**
|
|
908
|
+
* @platform darwin
|
|
909
|
+
*/
|
|
817
910
|
once(event: 'will-continue-activity', listener: (event: Event,
|
|
818
911
|
/**
|
|
819
912
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
820
913
|
*/
|
|
821
914
|
type: string) => void): this;
|
|
915
|
+
/**
|
|
916
|
+
* @platform darwin
|
|
917
|
+
*/
|
|
822
918
|
addListener(event: 'will-continue-activity', listener: (event: Event,
|
|
823
919
|
/**
|
|
824
920
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
825
921
|
*/
|
|
826
922
|
type: string) => void): this;
|
|
923
|
+
/**
|
|
924
|
+
* @platform darwin
|
|
925
|
+
*/
|
|
827
926
|
removeListener(event: 'will-continue-activity', listener: (event: Event,
|
|
828
927
|
/**
|
|
829
928
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -1064,17 +1163,22 @@ declare namespace Electron {
|
|
|
1064
1163
|
*
|
|
1065
1164
|
*
|
|
1066
1165
|
* * `openAtLogin` boolean - `true` if the app is set to open at login.
|
|
1067
|
-
* * `openAsHidden` boolean _macOS_ - `true` if the app is set to open
|
|
1068
|
-
* login. This
|
|
1069
|
-
* * `wasOpenedAtLogin` boolean _macOS_ - `true` if the app was opened
|
|
1070
|
-
* automatically. This setting is not available on MAS builds
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
* This
|
|
1074
|
-
*
|
|
1075
|
-
*
|
|
1076
|
-
*
|
|
1077
|
-
*
|
|
1166
|
+
* * `openAsHidden` boolean _macOS_ _Deprecated_ - `true` if the app is set to open
|
|
1167
|
+
* as hidden at login. This does not work on macOS 13 and up.
|
|
1168
|
+
* * `wasOpenedAtLogin` boolean _macOS_ _Deprecated_ - `true` if the app was opened
|
|
1169
|
+
* at login automatically. This setting is not available on MAS builds or on macOS
|
|
1170
|
+
* 13 and up.
|
|
1171
|
+
* * `wasOpenedAsHidden` boolean _macOS_ _Deprecated_ - `true` if the app was
|
|
1172
|
+
* opened as a hidden login item. This indicates that the app should not open any
|
|
1173
|
+
* windows at startup. This setting is not available on MAS builds or on macOS 13
|
|
1174
|
+
* and up.
|
|
1175
|
+
* * `restoreState` boolean _macOS_ _Deprecated_ - `true` if the app was opened as
|
|
1176
|
+
* a login item that should restore the state from the previous session. This
|
|
1177
|
+
* indicates that the app should restore the windows that were open the last time
|
|
1178
|
+
* the app was closed. This setting is not available on MAS builds or on macOS 13
|
|
1179
|
+
* and up.
|
|
1180
|
+
* * `status` string _macOS_ - can be one of `not-registered`, `enabled`,
|
|
1181
|
+
* `requires-approval`, or `not-found`.
|
|
1078
1182
|
* * `executableWillLaunchAtLogin` boolean _Windows_ - `true` if app is set to open
|
|
1079
1183
|
* at login and its run key is not deactivated. This differs from `openAtLogin` as
|
|
1080
1184
|
* it ignores the `args` option, this property will be true if the given executable
|
|
@@ -1504,10 +1608,15 @@ declare namespace Electron {
|
|
|
1504
1608
|
*/
|
|
1505
1609
|
setJumpList(categories: (JumpListCategory[]) | (null)): ('ok' | 'error' | 'invalidSeparatorError' | 'fileTypeRegistrationError' | 'customCategoryAccessDeniedError');
|
|
1506
1610
|
/**
|
|
1611
|
+
* Set the app's login item settings.
|
|
1612
|
+
*
|
|
1507
1613
|
* To work with Electron's `autoUpdater` on Windows, which uses Squirrel, you'll
|
|
1508
1614
|
* want to set the launch path to Update.exe, and pass arguments that specify your
|
|
1509
1615
|
* application name. For example:
|
|
1510
1616
|
*
|
|
1617
|
+
* For more information about setting different services as login items on macOS 13
|
|
1618
|
+
* and up, see `SMAppService`.
|
|
1619
|
+
*
|
|
1511
1620
|
* @platform darwin,win32
|
|
1512
1621
|
*/
|
|
1513
1622
|
setLoginItemSettings(settings: Settings): void;
|
|
@@ -1921,12 +2030,24 @@ declare namespace Electron {
|
|
|
1921
2030
|
*/
|
|
1922
2031
|
on(event: 'app-command', listener: (event: Event,
|
|
1923
2032
|
command: string) => void): this;
|
|
2033
|
+
/**
|
|
2034
|
+
* @platform win32,linux
|
|
2035
|
+
*/
|
|
1924
2036
|
off(event: 'app-command', listener: (event: Event,
|
|
1925
2037
|
command: string) => void): this;
|
|
2038
|
+
/**
|
|
2039
|
+
* @platform win32,linux
|
|
2040
|
+
*/
|
|
1926
2041
|
once(event: 'app-command', listener: (event: Event,
|
|
1927
2042
|
command: string) => void): this;
|
|
2043
|
+
/**
|
|
2044
|
+
* @platform win32,linux
|
|
2045
|
+
*/
|
|
1928
2046
|
addListener(event: 'app-command', listener: (event: Event,
|
|
1929
2047
|
command: string) => void): this;
|
|
2048
|
+
/**
|
|
2049
|
+
* @platform win32,linux
|
|
2050
|
+
*/
|
|
1930
2051
|
removeListener(event: 'app-command', listener: (event: Event,
|
|
1931
2052
|
command: string) => void): this;
|
|
1932
2053
|
/**
|
|
@@ -2047,9 +2168,21 @@ declare namespace Electron {
|
|
|
2047
2168
|
* @platform darwin,win32
|
|
2048
2169
|
*/
|
|
2049
2170
|
on(event: 'moved', listener: Function): this;
|
|
2171
|
+
/**
|
|
2172
|
+
* @platform darwin,win32
|
|
2173
|
+
*/
|
|
2050
2174
|
off(event: 'moved', listener: Function): this;
|
|
2175
|
+
/**
|
|
2176
|
+
* @platform darwin,win32
|
|
2177
|
+
*/
|
|
2051
2178
|
once(event: 'moved', listener: Function): this;
|
|
2179
|
+
/**
|
|
2180
|
+
* @platform darwin,win32
|
|
2181
|
+
*/
|
|
2052
2182
|
addListener(event: 'moved', listener: Function): this;
|
|
2183
|
+
/**
|
|
2184
|
+
* @platform darwin,win32
|
|
2185
|
+
*/
|
|
2053
2186
|
removeListener(event: 'moved', listener: Function): this;
|
|
2054
2187
|
/**
|
|
2055
2188
|
* Emitted when the native new tab button is clicked.
|
|
@@ -2057,9 +2190,21 @@ declare namespace Electron {
|
|
|
2057
2190
|
* @platform darwin
|
|
2058
2191
|
*/
|
|
2059
2192
|
on(event: 'new-window-for-tab', listener: Function): this;
|
|
2193
|
+
/**
|
|
2194
|
+
* @platform darwin
|
|
2195
|
+
*/
|
|
2060
2196
|
off(event: 'new-window-for-tab', listener: Function): this;
|
|
2197
|
+
/**
|
|
2198
|
+
* @platform darwin
|
|
2199
|
+
*/
|
|
2061
2200
|
once(event: 'new-window-for-tab', listener: Function): this;
|
|
2201
|
+
/**
|
|
2202
|
+
* @platform darwin
|
|
2203
|
+
*/
|
|
2062
2204
|
addListener(event: 'new-window-for-tab', listener: Function): this;
|
|
2205
|
+
/**
|
|
2206
|
+
* @platform darwin
|
|
2207
|
+
*/
|
|
2063
2208
|
removeListener(event: 'new-window-for-tab', listener: Function): this;
|
|
2064
2209
|
/**
|
|
2065
2210
|
* Emitted when the document changed its title, calling `event.preventDefault()`
|
|
@@ -2112,9 +2257,21 @@ declare namespace Electron {
|
|
|
2112
2257
|
* @platform darwin,win32
|
|
2113
2258
|
*/
|
|
2114
2259
|
on(event: 'resized', listener: Function): this;
|
|
2260
|
+
/**
|
|
2261
|
+
* @platform darwin,win32
|
|
2262
|
+
*/
|
|
2115
2263
|
off(event: 'resized', listener: Function): this;
|
|
2264
|
+
/**
|
|
2265
|
+
* @platform darwin,win32
|
|
2266
|
+
*/
|
|
2116
2267
|
once(event: 'resized', listener: Function): this;
|
|
2268
|
+
/**
|
|
2269
|
+
* @platform darwin,win32
|
|
2270
|
+
*/
|
|
2117
2271
|
addListener(event: 'resized', listener: Function): this;
|
|
2272
|
+
/**
|
|
2273
|
+
* @platform darwin,win32
|
|
2274
|
+
*/
|
|
2118
2275
|
removeListener(event: 'resized', listener: Function): this;
|
|
2119
2276
|
/**
|
|
2120
2277
|
* Emitted when the unresponsive web page becomes responsive again.
|
|
@@ -2143,12 +2300,24 @@ declare namespace Electron {
|
|
|
2143
2300
|
*/
|
|
2144
2301
|
on(event: 'rotate-gesture', listener: (event: Event,
|
|
2145
2302
|
rotation: number) => void): this;
|
|
2303
|
+
/**
|
|
2304
|
+
* @platform darwin
|
|
2305
|
+
*/
|
|
2146
2306
|
off(event: 'rotate-gesture', listener: (event: Event,
|
|
2147
2307
|
rotation: number) => void): this;
|
|
2308
|
+
/**
|
|
2309
|
+
* @platform darwin
|
|
2310
|
+
*/
|
|
2148
2311
|
once(event: 'rotate-gesture', listener: (event: Event,
|
|
2149
2312
|
rotation: number) => void): this;
|
|
2313
|
+
/**
|
|
2314
|
+
* @platform darwin
|
|
2315
|
+
*/
|
|
2150
2316
|
addListener(event: 'rotate-gesture', listener: (event: Event,
|
|
2151
2317
|
rotation: number) => void): this;
|
|
2318
|
+
/**
|
|
2319
|
+
* @platform darwin
|
|
2320
|
+
*/
|
|
2152
2321
|
removeListener(event: 'rotate-gesture', listener: (event: Event,
|
|
2153
2322
|
rotation: number) => void): this;
|
|
2154
2323
|
/**
|
|
@@ -2158,9 +2327,21 @@ declare namespace Electron {
|
|
|
2158
2327
|
* @platform win32
|
|
2159
2328
|
*/
|
|
2160
2329
|
on(event: 'session-end', listener: Function): this;
|
|
2330
|
+
/**
|
|
2331
|
+
* @platform win32
|
|
2332
|
+
*/
|
|
2161
2333
|
off(event: 'session-end', listener: Function): this;
|
|
2334
|
+
/**
|
|
2335
|
+
* @platform win32
|
|
2336
|
+
*/
|
|
2162
2337
|
once(event: 'session-end', listener: Function): this;
|
|
2338
|
+
/**
|
|
2339
|
+
* @platform win32
|
|
2340
|
+
*/
|
|
2163
2341
|
addListener(event: 'session-end', listener: Function): this;
|
|
2342
|
+
/**
|
|
2343
|
+
* @platform win32
|
|
2344
|
+
*/
|
|
2164
2345
|
removeListener(event: 'session-end', listener: Function): this;
|
|
2165
2346
|
/**
|
|
2166
2347
|
* Emitted when the window opens a sheet.
|
|
@@ -2168,9 +2349,21 @@ declare namespace Electron {
|
|
|
2168
2349
|
* @platform darwin
|
|
2169
2350
|
*/
|
|
2170
2351
|
on(event: 'sheet-begin', listener: Function): this;
|
|
2352
|
+
/**
|
|
2353
|
+
* @platform darwin
|
|
2354
|
+
*/
|
|
2171
2355
|
off(event: 'sheet-begin', listener: Function): this;
|
|
2356
|
+
/**
|
|
2357
|
+
* @platform darwin
|
|
2358
|
+
*/
|
|
2172
2359
|
once(event: 'sheet-begin', listener: Function): this;
|
|
2360
|
+
/**
|
|
2361
|
+
* @platform darwin
|
|
2362
|
+
*/
|
|
2173
2363
|
addListener(event: 'sheet-begin', listener: Function): this;
|
|
2364
|
+
/**
|
|
2365
|
+
* @platform darwin
|
|
2366
|
+
*/
|
|
2174
2367
|
removeListener(event: 'sheet-begin', listener: Function): this;
|
|
2175
2368
|
/**
|
|
2176
2369
|
* Emitted when the window has closed a sheet.
|
|
@@ -2178,9 +2371,21 @@ declare namespace Electron {
|
|
|
2178
2371
|
* @platform darwin
|
|
2179
2372
|
*/
|
|
2180
2373
|
on(event: 'sheet-end', listener: Function): this;
|
|
2374
|
+
/**
|
|
2375
|
+
* @platform darwin
|
|
2376
|
+
*/
|
|
2181
2377
|
off(event: 'sheet-end', listener: Function): this;
|
|
2378
|
+
/**
|
|
2379
|
+
* @platform darwin
|
|
2380
|
+
*/
|
|
2182
2381
|
once(event: 'sheet-end', listener: Function): this;
|
|
2382
|
+
/**
|
|
2383
|
+
* @platform darwin
|
|
2384
|
+
*/
|
|
2183
2385
|
addListener(event: 'sheet-end', listener: Function): this;
|
|
2386
|
+
/**
|
|
2387
|
+
* @platform darwin
|
|
2388
|
+
*/
|
|
2184
2389
|
removeListener(event: 'sheet-end', listener: Function): this;
|
|
2185
2390
|
/**
|
|
2186
2391
|
* Emitted when the window is shown.
|
|
@@ -2205,12 +2410,24 @@ declare namespace Electron {
|
|
|
2205
2410
|
*/
|
|
2206
2411
|
on(event: 'swipe', listener: (event: Event,
|
|
2207
2412
|
direction: string) => void): this;
|
|
2413
|
+
/**
|
|
2414
|
+
* @platform darwin
|
|
2415
|
+
*/
|
|
2208
2416
|
off(event: 'swipe', listener: (event: Event,
|
|
2209
2417
|
direction: string) => void): this;
|
|
2210
|
-
|
|
2418
|
+
/**
|
|
2419
|
+
* @platform darwin
|
|
2420
|
+
*/
|
|
2421
|
+
once(event: 'swipe', listener: (event: Event,
|
|
2211
2422
|
direction: string) => void): this;
|
|
2423
|
+
/**
|
|
2424
|
+
* @platform darwin
|
|
2425
|
+
*/
|
|
2212
2426
|
addListener(event: 'swipe', listener: (event: Event,
|
|
2213
2427
|
direction: string) => void): this;
|
|
2428
|
+
/**
|
|
2429
|
+
* @platform darwin
|
|
2430
|
+
*/
|
|
2214
2431
|
removeListener(event: 'swipe', listener: (event: Event,
|
|
2215
2432
|
direction: string) => void): this;
|
|
2216
2433
|
/**
|
|
@@ -2228,21 +2445,33 @@ declare namespace Electron {
|
|
|
2228
2445
|
* The screen coordinates the context menu was triggered at
|
|
2229
2446
|
*/
|
|
2230
2447
|
point: Point) => void): this;
|
|
2448
|
+
/**
|
|
2449
|
+
* @platform win32
|
|
2450
|
+
*/
|
|
2231
2451
|
off(event: 'system-context-menu', listener: (event: Event,
|
|
2232
2452
|
/**
|
|
2233
2453
|
* The screen coordinates the context menu was triggered at
|
|
2234
2454
|
*/
|
|
2235
2455
|
point: Point) => void): this;
|
|
2456
|
+
/**
|
|
2457
|
+
* @platform win32
|
|
2458
|
+
*/
|
|
2236
2459
|
once(event: 'system-context-menu', listener: (event: Event,
|
|
2237
2460
|
/**
|
|
2238
2461
|
* The screen coordinates the context menu was triggered at
|
|
2239
2462
|
*/
|
|
2240
2463
|
point: Point) => void): this;
|
|
2464
|
+
/**
|
|
2465
|
+
* @platform win32
|
|
2466
|
+
*/
|
|
2241
2467
|
addListener(event: 'system-context-menu', listener: (event: Event,
|
|
2242
2468
|
/**
|
|
2243
2469
|
* The screen coordinates the context menu was triggered at
|
|
2244
2470
|
*/
|
|
2245
2471
|
point: Point) => void): this;
|
|
2472
|
+
/**
|
|
2473
|
+
* @platform win32
|
|
2474
|
+
*/
|
|
2246
2475
|
removeListener(event: 'system-context-menu', listener: (event: Event,
|
|
2247
2476
|
/**
|
|
2248
2477
|
* The screen coordinates the context menu was triggered at
|
|
@@ -2278,21 +2507,33 @@ declare namespace Electron {
|
|
|
2278
2507
|
* Location the window is being moved to.
|
|
2279
2508
|
*/
|
|
2280
2509
|
newBounds: Rectangle) => void): this;
|
|
2510
|
+
/**
|
|
2511
|
+
* @platform darwin,win32
|
|
2512
|
+
*/
|
|
2281
2513
|
off(event: 'will-move', listener: (event: Event,
|
|
2282
2514
|
/**
|
|
2283
2515
|
* Location the window is being moved to.
|
|
2284
2516
|
*/
|
|
2285
2517
|
newBounds: Rectangle) => void): this;
|
|
2518
|
+
/**
|
|
2519
|
+
* @platform darwin,win32
|
|
2520
|
+
*/
|
|
2286
2521
|
once(event: 'will-move', listener: (event: Event,
|
|
2287
2522
|
/**
|
|
2288
2523
|
* Location the window is being moved to.
|
|
2289
2524
|
*/
|
|
2290
2525
|
newBounds: Rectangle) => void): this;
|
|
2526
|
+
/**
|
|
2527
|
+
* @platform darwin,win32
|
|
2528
|
+
*/
|
|
2291
2529
|
addListener(event: 'will-move', listener: (event: Event,
|
|
2292
2530
|
/**
|
|
2293
2531
|
* Location the window is being moved to.
|
|
2294
2532
|
*/
|
|
2295
2533
|
newBounds: Rectangle) => void): this;
|
|
2534
|
+
/**
|
|
2535
|
+
* @platform darwin,win32
|
|
2536
|
+
*/
|
|
2296
2537
|
removeListener(event: 'will-move', listener: (event: Event,
|
|
2297
2538
|
/**
|
|
2298
2539
|
* Location the window is being moved to.
|
|
@@ -2322,24 +2563,36 @@ declare namespace Electron {
|
|
|
2322
2563
|
*/
|
|
2323
2564
|
newBounds: Rectangle,
|
|
2324
2565
|
details: WillResizeDetails) => void): this;
|
|
2566
|
+
/**
|
|
2567
|
+
* @platform darwin,win32
|
|
2568
|
+
*/
|
|
2325
2569
|
off(event: 'will-resize', listener: (event: Event,
|
|
2326
2570
|
/**
|
|
2327
2571
|
* Size the window is being resized to.
|
|
2328
2572
|
*/
|
|
2329
2573
|
newBounds: Rectangle,
|
|
2330
2574
|
details: WillResizeDetails) => void): this;
|
|
2575
|
+
/**
|
|
2576
|
+
* @platform darwin,win32
|
|
2577
|
+
*/
|
|
2331
2578
|
once(event: 'will-resize', listener: (event: Event,
|
|
2332
2579
|
/**
|
|
2333
2580
|
* Size the window is being resized to.
|
|
2334
2581
|
*/
|
|
2335
2582
|
newBounds: Rectangle,
|
|
2336
2583
|
details: WillResizeDetails) => void): this;
|
|
2584
|
+
/**
|
|
2585
|
+
* @platform darwin,win32
|
|
2586
|
+
*/
|
|
2337
2587
|
addListener(event: 'will-resize', listener: (event: Event,
|
|
2338
2588
|
/**
|
|
2339
2589
|
* Size the window is being resized to.
|
|
2340
2590
|
*/
|
|
2341
2591
|
newBounds: Rectangle,
|
|
2342
2592
|
details: WillResizeDetails) => void): this;
|
|
2593
|
+
/**
|
|
2594
|
+
* @platform darwin,win32
|
|
2595
|
+
*/
|
|
2343
2596
|
removeListener(event: 'will-resize', listener: (event: Event,
|
|
2344
2597
|
/**
|
|
2345
2598
|
* Size the window is being resized to.
|
|
@@ -3205,7 +3458,7 @@ declare namespace Electron {
|
|
|
3205
3458
|
*
|
|
3206
3459
|
* @platform win32
|
|
3207
3460
|
*/
|
|
3208
|
-
setTitleBarOverlay(options:
|
|
3461
|
+
setTitleBarOverlay(options: TitleBarOverlay): void;
|
|
3209
3462
|
/**
|
|
3210
3463
|
* Raises `browserView` above other `BrowserView`s attached to `win`. Throws an
|
|
3211
3464
|
* error if `browserView` is not attached to `win`.
|
|
@@ -4480,7 +4733,7 @@ declare namespace Electron {
|
|
|
4480
4733
|
*
|
|
4481
4734
|
* **Note:** This method is only available in the main process.
|
|
4482
4735
|
*/
|
|
4483
|
-
getLastCrashReport(): CrashReport;
|
|
4736
|
+
getLastCrashReport(): (CrashReport) | (null);
|
|
4484
4737
|
/**
|
|
4485
4738
|
* The current 'extra' parameters of the crash reporter.
|
|
4486
4739
|
*/
|
|
@@ -5009,33 +5262,48 @@ declare namespace Electron {
|
|
|
5009
5262
|
colorDepth: number;
|
|
5010
5263
|
/**
|
|
5011
5264
|
* represent a color space (three-dimensional object which contains all realizable
|
|
5012
|
-
* color combinations) for the purpose of color conversions
|
|
5265
|
+
* color combinations) for the purpose of color conversions.
|
|
5013
5266
|
*/
|
|
5014
5267
|
colorSpace: string;
|
|
5015
5268
|
/**
|
|
5016
5269
|
* The number of bits per color component.
|
|
5017
5270
|
*/
|
|
5018
5271
|
depthPerComponent: number;
|
|
5272
|
+
/**
|
|
5273
|
+
* `true`` if the display is detected by the system.
|
|
5274
|
+
*/
|
|
5275
|
+
detected: boolean;
|
|
5019
5276
|
/**
|
|
5020
5277
|
* The display refresh rate.
|
|
5021
5278
|
*/
|
|
5022
5279
|
displayFrequency: number;
|
|
5023
5280
|
/**
|
|
5024
|
-
* Unique identifier associated with the display.
|
|
5281
|
+
* Unique identifier associated with the display. A value of of -1 means the
|
|
5282
|
+
* display is invalid or the correct `id` is not yet known, and a value of -10
|
|
5283
|
+
* means the display is a virtual display assigned to a unified desktop.
|
|
5025
5284
|
*/
|
|
5026
5285
|
id: number;
|
|
5027
5286
|
/**
|
|
5028
|
-
* `true` for an internal display and `false` for an external display
|
|
5287
|
+
* `true` for an internal display and `false` for an external display.
|
|
5029
5288
|
*/
|
|
5030
5289
|
internal: boolean;
|
|
5031
5290
|
/**
|
|
5032
5291
|
* User-friendly label, determined by the platform.
|
|
5033
5292
|
*/
|
|
5034
5293
|
label: string;
|
|
5294
|
+
/**
|
|
5295
|
+
* Maximum cursor size in native pixels.
|
|
5296
|
+
*/
|
|
5297
|
+
maximumCursorSize: Size;
|
|
5035
5298
|
/**
|
|
5036
5299
|
* Whether or not the display is a monochrome display.
|
|
5037
5300
|
*/
|
|
5038
5301
|
monochrome: boolean;
|
|
5302
|
+
/**
|
|
5303
|
+
* Returns the display's origin in pixel coordinates. Only available on windowing
|
|
5304
|
+
* systems like X11 that position displays in pixel coordinates.
|
|
5305
|
+
*/
|
|
5306
|
+
nativeOrigin: Point;
|
|
5039
5307
|
/**
|
|
5040
5308
|
* Can be 0, 90, 180, 270, represents screen rotation in clock-wise degrees.
|
|
5041
5309
|
*/
|
|
@@ -5053,6 +5321,9 @@ declare namespace Electron {
|
|
|
5053
5321
|
* the work area of the display in DIP points.
|
|
5054
5322
|
*/
|
|
5055
5323
|
workArea: Rectangle;
|
|
5324
|
+
/**
|
|
5325
|
+
* The size of the work area.
|
|
5326
|
+
*/
|
|
5056
5327
|
workAreaSize: Size;
|
|
5057
5328
|
}
|
|
5058
5329
|
|
|
@@ -6826,21 +7097,33 @@ declare namespace Electron {
|
|
|
6826
7097
|
* The index of the action that was activated.
|
|
6827
7098
|
*/
|
|
6828
7099
|
index: number) => void): this;
|
|
7100
|
+
/**
|
|
7101
|
+
* @platform darwin
|
|
7102
|
+
*/
|
|
6829
7103
|
off(event: 'action', listener: (event: Event,
|
|
6830
7104
|
/**
|
|
6831
7105
|
* The index of the action that was activated.
|
|
6832
7106
|
*/
|
|
6833
7107
|
index: number) => void): this;
|
|
7108
|
+
/**
|
|
7109
|
+
* @platform darwin
|
|
7110
|
+
*/
|
|
6834
7111
|
once(event: 'action', listener: (event: Event,
|
|
6835
7112
|
/**
|
|
6836
7113
|
* The index of the action that was activated.
|
|
6837
7114
|
*/
|
|
6838
7115
|
index: number) => void): this;
|
|
7116
|
+
/**
|
|
7117
|
+
* @platform darwin
|
|
7118
|
+
*/
|
|
6839
7119
|
addListener(event: 'action', listener: (event: Event,
|
|
6840
7120
|
/**
|
|
6841
7121
|
* The index of the action that was activated.
|
|
6842
7122
|
*/
|
|
6843
7123
|
index: number) => void): this;
|
|
7124
|
+
/**
|
|
7125
|
+
* @platform darwin
|
|
7126
|
+
*/
|
|
6844
7127
|
removeListener(event: 'action', listener: (event: Event,
|
|
6845
7128
|
/**
|
|
6846
7129
|
* The index of the action that was activated.
|
|
@@ -6883,21 +7166,33 @@ declare namespace Electron {
|
|
|
6883
7166
|
* The error encountered during execution of the `show()` method.
|
|
6884
7167
|
*/
|
|
6885
7168
|
error: string) => void): this;
|
|
7169
|
+
/**
|
|
7170
|
+
* @platform win32
|
|
7171
|
+
*/
|
|
6886
7172
|
off(event: 'failed', listener: (event: Event,
|
|
6887
7173
|
/**
|
|
6888
7174
|
* The error encountered during execution of the `show()` method.
|
|
6889
7175
|
*/
|
|
6890
7176
|
error: string) => void): this;
|
|
7177
|
+
/**
|
|
7178
|
+
* @platform win32
|
|
7179
|
+
*/
|
|
6891
7180
|
once(event: 'failed', listener: (event: Event,
|
|
6892
7181
|
/**
|
|
6893
7182
|
* The error encountered during execution of the `show()` method.
|
|
6894
7183
|
*/
|
|
6895
7184
|
error: string) => void): this;
|
|
7185
|
+
/**
|
|
7186
|
+
* @platform win32
|
|
7187
|
+
*/
|
|
6896
7188
|
addListener(event: 'failed', listener: (event: Event,
|
|
6897
7189
|
/**
|
|
6898
7190
|
* The error encountered during execution of the `show()` method.
|
|
6899
7191
|
*/
|
|
6900
7192
|
error: string) => void): this;
|
|
7193
|
+
/**
|
|
7194
|
+
* @platform win32
|
|
7195
|
+
*/
|
|
6901
7196
|
removeListener(event: 'failed', listener: (event: Event,
|
|
6902
7197
|
/**
|
|
6903
7198
|
* The error encountered during execution of the `show()` method.
|
|
@@ -6914,21 +7209,33 @@ declare namespace Electron {
|
|
|
6914
7209
|
* The string the user entered into the inline reply field.
|
|
6915
7210
|
*/
|
|
6916
7211
|
reply: string) => void): this;
|
|
7212
|
+
/**
|
|
7213
|
+
* @platform darwin
|
|
7214
|
+
*/
|
|
6917
7215
|
off(event: 'reply', listener: (event: Event,
|
|
6918
7216
|
/**
|
|
6919
7217
|
* The string the user entered into the inline reply field.
|
|
6920
7218
|
*/
|
|
6921
7219
|
reply: string) => void): this;
|
|
7220
|
+
/**
|
|
7221
|
+
* @platform darwin
|
|
7222
|
+
*/
|
|
6922
7223
|
once(event: 'reply', listener: (event: Event,
|
|
6923
7224
|
/**
|
|
6924
7225
|
* The string the user entered into the inline reply field.
|
|
6925
7226
|
*/
|
|
6926
7227
|
reply: string) => void): this;
|
|
7228
|
+
/**
|
|
7229
|
+
* @platform darwin
|
|
7230
|
+
*/
|
|
6927
7231
|
addListener(event: 'reply', listener: (event: Event,
|
|
6928
7232
|
/**
|
|
6929
7233
|
* The string the user entered into the inline reply field.
|
|
6930
7234
|
*/
|
|
6931
7235
|
reply: string) => void): this;
|
|
7236
|
+
/**
|
|
7237
|
+
* @platform darwin
|
|
7238
|
+
*/
|
|
6932
7239
|
removeListener(event: 'reply', listener: (event: Event,
|
|
6933
7240
|
/**
|
|
6934
7241
|
* The string the user entered into the inline reply field.
|
|
@@ -7160,9 +7467,21 @@ declare namespace Electron {
|
|
|
7160
7467
|
* @platform darwin,win32
|
|
7161
7468
|
*/
|
|
7162
7469
|
on(event: 'lock-screen', listener: Function): this;
|
|
7470
|
+
/**
|
|
7471
|
+
* @platform darwin,win32
|
|
7472
|
+
*/
|
|
7163
7473
|
off(event: 'lock-screen', listener: Function): this;
|
|
7474
|
+
/**
|
|
7475
|
+
* @platform darwin,win32
|
|
7476
|
+
*/
|
|
7164
7477
|
once(event: 'lock-screen', listener: Function): this;
|
|
7478
|
+
/**
|
|
7479
|
+
* @platform darwin,win32
|
|
7480
|
+
*/
|
|
7165
7481
|
addListener(event: 'lock-screen', listener: Function): this;
|
|
7482
|
+
/**
|
|
7483
|
+
* @platform darwin,win32
|
|
7484
|
+
*/
|
|
7166
7485
|
removeListener(event: 'lock-screen', listener: Function): this;
|
|
7167
7486
|
/**
|
|
7168
7487
|
* Emitted when the system changes to AC power.
|
|
@@ -7170,9 +7489,21 @@ declare namespace Electron {
|
|
|
7170
7489
|
* @platform darwin,win32
|
|
7171
7490
|
*/
|
|
7172
7491
|
on(event: 'on-ac', listener: Function): this;
|
|
7492
|
+
/**
|
|
7493
|
+
* @platform darwin,win32
|
|
7494
|
+
*/
|
|
7173
7495
|
off(event: 'on-ac', listener: Function): this;
|
|
7496
|
+
/**
|
|
7497
|
+
* @platform darwin,win32
|
|
7498
|
+
*/
|
|
7174
7499
|
once(event: 'on-ac', listener: Function): this;
|
|
7500
|
+
/**
|
|
7501
|
+
* @platform darwin,win32
|
|
7502
|
+
*/
|
|
7175
7503
|
addListener(event: 'on-ac', listener: Function): this;
|
|
7504
|
+
/**
|
|
7505
|
+
* @platform darwin,win32
|
|
7506
|
+
*/
|
|
7176
7507
|
removeListener(event: 'on-ac', listener: Function): this;
|
|
7177
7508
|
/**
|
|
7178
7509
|
* Emitted when system changes to battery power.
|
|
@@ -7180,9 +7511,21 @@ declare namespace Electron {
|
|
|
7180
7511
|
* @platform darwin
|
|
7181
7512
|
*/
|
|
7182
7513
|
on(event: 'on-battery', listener: Function): this;
|
|
7514
|
+
/**
|
|
7515
|
+
* @platform darwin
|
|
7516
|
+
*/
|
|
7183
7517
|
off(event: 'on-battery', listener: Function): this;
|
|
7518
|
+
/**
|
|
7519
|
+
* @platform darwin
|
|
7520
|
+
*/
|
|
7184
7521
|
once(event: 'on-battery', listener: Function): this;
|
|
7522
|
+
/**
|
|
7523
|
+
* @platform darwin
|
|
7524
|
+
*/
|
|
7185
7525
|
addListener(event: 'on-battery', listener: Function): this;
|
|
7526
|
+
/**
|
|
7527
|
+
* @platform darwin
|
|
7528
|
+
*/
|
|
7186
7529
|
removeListener(event: 'on-battery', listener: Function): this;
|
|
7187
7530
|
/**
|
|
7188
7531
|
* Emitted when system is resuming.
|
|
@@ -7201,9 +7544,21 @@ declare namespace Electron {
|
|
|
7201
7544
|
* @platform linux,darwin
|
|
7202
7545
|
*/
|
|
7203
7546
|
on(event: 'shutdown', listener: Function): this;
|
|
7547
|
+
/**
|
|
7548
|
+
* @platform linux,darwin
|
|
7549
|
+
*/
|
|
7204
7550
|
off(event: 'shutdown', listener: Function): this;
|
|
7551
|
+
/**
|
|
7552
|
+
* @platform linux,darwin
|
|
7553
|
+
*/
|
|
7205
7554
|
once(event: 'shutdown', listener: Function): this;
|
|
7555
|
+
/**
|
|
7556
|
+
* @platform linux,darwin
|
|
7557
|
+
*/
|
|
7206
7558
|
addListener(event: 'shutdown', listener: Function): this;
|
|
7559
|
+
/**
|
|
7560
|
+
* @platform linux,darwin
|
|
7561
|
+
*/
|
|
7207
7562
|
removeListener(event: 'shutdown', listener: Function): this;
|
|
7208
7563
|
/**
|
|
7209
7564
|
* Notification of a change in the operating system's advertised speed limit for
|
|
@@ -7213,9 +7568,21 @@ declare namespace Electron {
|
|
|
7213
7568
|
* @platform darwin,win32
|
|
7214
7569
|
*/
|
|
7215
7570
|
on(event: 'speed-limit-change', listener: Function): this;
|
|
7571
|
+
/**
|
|
7572
|
+
* @platform darwin,win32
|
|
7573
|
+
*/
|
|
7216
7574
|
off(event: 'speed-limit-change', listener: Function): this;
|
|
7575
|
+
/**
|
|
7576
|
+
* @platform darwin,win32
|
|
7577
|
+
*/
|
|
7217
7578
|
once(event: 'speed-limit-change', listener: Function): this;
|
|
7579
|
+
/**
|
|
7580
|
+
* @platform darwin,win32
|
|
7581
|
+
*/
|
|
7218
7582
|
addListener(event: 'speed-limit-change', listener: Function): this;
|
|
7583
|
+
/**
|
|
7584
|
+
* @platform darwin,win32
|
|
7585
|
+
*/
|
|
7219
7586
|
removeListener(event: 'speed-limit-change', listener: Function): this;
|
|
7220
7587
|
/**
|
|
7221
7588
|
* Emitted when the system is suspending.
|
|
@@ -7242,9 +7609,21 @@ declare namespace Electron {
|
|
|
7242
7609
|
* @platform darwin
|
|
7243
7610
|
*/
|
|
7244
7611
|
on(event: 'thermal-state-change', listener: Function): this;
|
|
7612
|
+
/**
|
|
7613
|
+
* @platform darwin
|
|
7614
|
+
*/
|
|
7245
7615
|
off(event: 'thermal-state-change', listener: Function): this;
|
|
7616
|
+
/**
|
|
7617
|
+
* @platform darwin
|
|
7618
|
+
*/
|
|
7246
7619
|
once(event: 'thermal-state-change', listener: Function): this;
|
|
7620
|
+
/**
|
|
7621
|
+
* @platform darwin
|
|
7622
|
+
*/
|
|
7247
7623
|
addListener(event: 'thermal-state-change', listener: Function): this;
|
|
7624
|
+
/**
|
|
7625
|
+
* @platform darwin
|
|
7626
|
+
*/
|
|
7248
7627
|
removeListener(event: 'thermal-state-change', listener: Function): this;
|
|
7249
7628
|
/**
|
|
7250
7629
|
* Emitted as soon as the systems screen is unlocked.
|
|
@@ -7252,9 +7631,21 @@ declare namespace Electron {
|
|
|
7252
7631
|
* @platform darwin,win32
|
|
7253
7632
|
*/
|
|
7254
7633
|
on(event: 'unlock-screen', listener: Function): this;
|
|
7634
|
+
/**
|
|
7635
|
+
* @platform darwin,win32
|
|
7636
|
+
*/
|
|
7255
7637
|
off(event: 'unlock-screen', listener: Function): this;
|
|
7638
|
+
/**
|
|
7639
|
+
* @platform darwin,win32
|
|
7640
|
+
*/
|
|
7256
7641
|
once(event: 'unlock-screen', listener: Function): this;
|
|
7642
|
+
/**
|
|
7643
|
+
* @platform darwin,win32
|
|
7644
|
+
*/
|
|
7257
7645
|
addListener(event: 'unlock-screen', listener: Function): this;
|
|
7646
|
+
/**
|
|
7647
|
+
* @platform darwin,win32
|
|
7648
|
+
*/
|
|
7258
7649
|
removeListener(event: 'unlock-screen', listener: Function): this;
|
|
7259
7650
|
/**
|
|
7260
7651
|
* Emitted when a login session is activated. See documentation for more
|
|
@@ -7263,9 +7654,21 @@ declare namespace Electron {
|
|
|
7263
7654
|
* @platform darwin
|
|
7264
7655
|
*/
|
|
7265
7656
|
on(event: 'user-did-become-active', listener: Function): this;
|
|
7657
|
+
/**
|
|
7658
|
+
* @platform darwin
|
|
7659
|
+
*/
|
|
7266
7660
|
off(event: 'user-did-become-active', listener: Function): this;
|
|
7661
|
+
/**
|
|
7662
|
+
* @platform darwin
|
|
7663
|
+
*/
|
|
7267
7664
|
once(event: 'user-did-become-active', listener: Function): this;
|
|
7665
|
+
/**
|
|
7666
|
+
* @platform darwin
|
|
7667
|
+
*/
|
|
7268
7668
|
addListener(event: 'user-did-become-active', listener: Function): this;
|
|
7669
|
+
/**
|
|
7670
|
+
* @platform darwin
|
|
7671
|
+
*/
|
|
7269
7672
|
removeListener(event: 'user-did-become-active', listener: Function): this;
|
|
7270
7673
|
/**
|
|
7271
7674
|
* Emitted when a login session is deactivated. See documentation for more
|
|
@@ -7274,9 +7677,21 @@ declare namespace Electron {
|
|
|
7274
7677
|
* @platform darwin
|
|
7275
7678
|
*/
|
|
7276
7679
|
on(event: 'user-did-resign-active', listener: Function): this;
|
|
7680
|
+
/**
|
|
7681
|
+
* @platform darwin
|
|
7682
|
+
*/
|
|
7277
7683
|
off(event: 'user-did-resign-active', listener: Function): this;
|
|
7684
|
+
/**
|
|
7685
|
+
* @platform darwin
|
|
7686
|
+
*/
|
|
7278
7687
|
once(event: 'user-did-resign-active', listener: Function): this;
|
|
7688
|
+
/**
|
|
7689
|
+
* @platform darwin
|
|
7690
|
+
*/
|
|
7279
7691
|
addListener(event: 'user-did-resign-active', listener: Function): this;
|
|
7692
|
+
/**
|
|
7693
|
+
* @platform darwin
|
|
7694
|
+
*/
|
|
7280
7695
|
removeListener(event: 'user-did-resign-active', listener: Function): this;
|
|
7281
7696
|
/**
|
|
7282
7697
|
* The system's current thermal state. Can be `unknown`, `nominal`, `fair`,
|
|
@@ -7683,9 +8098,9 @@ declare namespace Electron {
|
|
|
7683
8098
|
* module gets emitted and can be called only once.
|
|
7684
8099
|
*
|
|
7685
8100
|
* Registers the `scheme` as standard, secure, bypasses content security policy for
|
|
7686
|
-
* resources, allows registering ServiceWorker, supports fetch API,
|
|
7687
|
-
* video/audio. Specify a privilege with the value of `true` to
|
|
7688
|
-
* capability.
|
|
8101
|
+
* resources, allows registering ServiceWorker, supports fetch API, streaming
|
|
8102
|
+
* video/audio, and V8 code cache. Specify a privilege with the value of `true` to
|
|
8103
|
+
* enable the capability.
|
|
7689
8104
|
*
|
|
7690
8105
|
* An example of registering a privileged scheme, that bypasses Content Security
|
|
7691
8106
|
* Policy:
|
|
@@ -7870,12 +8285,24 @@ declare namespace Electron {
|
|
|
7870
8285
|
*/
|
|
7871
8286
|
on(event: 'received-apns-notification', listener: (event: Event,
|
|
7872
8287
|
userInfo: Record<string, any>) => void): this;
|
|
8288
|
+
/**
|
|
8289
|
+
* @platform darwin
|
|
8290
|
+
*/
|
|
7873
8291
|
off(event: 'received-apns-notification', listener: (event: Event,
|
|
7874
8292
|
userInfo: Record<string, any>) => void): this;
|
|
8293
|
+
/**
|
|
8294
|
+
* @platform darwin
|
|
8295
|
+
*/
|
|
7875
8296
|
once(event: 'received-apns-notification', listener: (event: Event,
|
|
7876
8297
|
userInfo: Record<string, any>) => void): this;
|
|
8298
|
+
/**
|
|
8299
|
+
* @platform darwin
|
|
8300
|
+
*/
|
|
7877
8301
|
addListener(event: 'received-apns-notification', listener: (event: Event,
|
|
7878
8302
|
userInfo: Record<string, any>) => void): this;
|
|
8303
|
+
/**
|
|
8304
|
+
* @platform darwin
|
|
8305
|
+
*/
|
|
7879
8306
|
removeListener(event: 'received-apns-notification', listener: (event: Event,
|
|
7880
8307
|
userInfo: Record<string, any>) => void): this;
|
|
7881
8308
|
/**
|
|
@@ -9061,6 +9488,10 @@ declare namespace Electron {
|
|
|
9061
9488
|
* all operations related to code cache will fail silently inside the runtime. By
|
|
9062
9489
|
* default, the directory will be `Code Cache` under the respective user data
|
|
9063
9490
|
* folder.
|
|
9491
|
+
*
|
|
9492
|
+
* Note that by default code cache is only enabled for http(s) URLs, to enable code
|
|
9493
|
+
* cache for custom protocols, `codeCache: true` and `standard: true` must be
|
|
9494
|
+
* specified when registering the protocol.
|
|
9064
9495
|
*/
|
|
9065
9496
|
setCodeCachePath(path: string): void;
|
|
9066
9497
|
/**
|
|
@@ -9462,21 +9893,33 @@ declare namespace Electron {
|
|
|
9462
9893
|
* The new RGBA color the user assigned to be their system accent color.
|
|
9463
9894
|
*/
|
|
9464
9895
|
newColor: string) => void): this;
|
|
9896
|
+
/**
|
|
9897
|
+
* @platform win32
|
|
9898
|
+
*/
|
|
9465
9899
|
off(event: 'accent-color-changed', listener: (event: Event,
|
|
9466
9900
|
/**
|
|
9467
9901
|
* The new RGBA color the user assigned to be their system accent color.
|
|
9468
9902
|
*/
|
|
9469
9903
|
newColor: string) => void): this;
|
|
9904
|
+
/**
|
|
9905
|
+
* @platform win32
|
|
9906
|
+
*/
|
|
9470
9907
|
once(event: 'accent-color-changed', listener: (event: Event,
|
|
9471
9908
|
/**
|
|
9472
9909
|
* The new RGBA color the user assigned to be their system accent color.
|
|
9473
9910
|
*/
|
|
9474
9911
|
newColor: string) => void): this;
|
|
9912
|
+
/**
|
|
9913
|
+
* @platform win32
|
|
9914
|
+
*/
|
|
9475
9915
|
addListener(event: 'accent-color-changed', listener: (event: Event,
|
|
9476
9916
|
/**
|
|
9477
9917
|
* The new RGBA color the user assigned to be their system accent color.
|
|
9478
9918
|
*/
|
|
9479
9919
|
newColor: string) => void): this;
|
|
9920
|
+
/**
|
|
9921
|
+
* @platform win32
|
|
9922
|
+
*/
|
|
9480
9923
|
removeListener(event: 'accent-color-changed', listener: (event: Event,
|
|
9481
9924
|
/**
|
|
9482
9925
|
* The new RGBA color the user assigned to be their system accent color.
|
|
@@ -9486,9 +9929,21 @@ declare namespace Electron {
|
|
|
9486
9929
|
* @platform win32
|
|
9487
9930
|
*/
|
|
9488
9931
|
on(event: 'color-changed', listener: (event: Event) => void): this;
|
|
9932
|
+
/**
|
|
9933
|
+
* @platform win32
|
|
9934
|
+
*/
|
|
9489
9935
|
off(event: 'color-changed', listener: (event: Event) => void): this;
|
|
9936
|
+
/**
|
|
9937
|
+
* @platform win32
|
|
9938
|
+
*/
|
|
9490
9939
|
once(event: 'color-changed', listener: (event: Event) => void): this;
|
|
9940
|
+
/**
|
|
9941
|
+
* @platform win32
|
|
9942
|
+
*/
|
|
9491
9943
|
addListener(event: 'color-changed', listener: (event: Event) => void): this;
|
|
9944
|
+
/**
|
|
9945
|
+
* @platform win32
|
|
9946
|
+
*/
|
|
9492
9947
|
removeListener(event: 'color-changed', listener: (event: Event) => void): this;
|
|
9493
9948
|
/**
|
|
9494
9949
|
* A promise that resolves with `true` if consent was granted and `false` if it was
|
|
@@ -10267,9 +10722,21 @@ declare namespace Electron {
|
|
|
10267
10722
|
* @platform win32
|
|
10268
10723
|
*/
|
|
10269
10724
|
on(event: 'balloon-click', listener: Function): this;
|
|
10725
|
+
/**
|
|
10726
|
+
* @platform win32
|
|
10727
|
+
*/
|
|
10270
10728
|
off(event: 'balloon-click', listener: Function): this;
|
|
10729
|
+
/**
|
|
10730
|
+
* @platform win32
|
|
10731
|
+
*/
|
|
10271
10732
|
once(event: 'balloon-click', listener: Function): this;
|
|
10733
|
+
/**
|
|
10734
|
+
* @platform win32
|
|
10735
|
+
*/
|
|
10272
10736
|
addListener(event: 'balloon-click', listener: Function): this;
|
|
10737
|
+
/**
|
|
10738
|
+
* @platform win32
|
|
10739
|
+
*/
|
|
10273
10740
|
removeListener(event: 'balloon-click', listener: Function): this;
|
|
10274
10741
|
/**
|
|
10275
10742
|
* Emitted when the tray balloon is closed because of timeout or user manually
|
|
@@ -10278,19 +10745,43 @@ declare namespace Electron {
|
|
|
10278
10745
|
* @platform win32
|
|
10279
10746
|
*/
|
|
10280
10747
|
on(event: 'balloon-closed', listener: Function): this;
|
|
10748
|
+
/**
|
|
10749
|
+
* @platform win32
|
|
10750
|
+
*/
|
|
10281
10751
|
off(event: 'balloon-closed', listener: Function): this;
|
|
10282
|
-
once(event: 'balloon-closed', listener: Function): this;
|
|
10283
|
-
addListener(event: 'balloon-closed', listener: Function): this;
|
|
10284
|
-
removeListener(event: 'balloon-closed', listener: Function): this;
|
|
10285
10752
|
/**
|
|
10286
|
-
* Emitted when the tray balloon shows.
|
|
10287
|
-
*
|
|
10288
10753
|
* @platform win32
|
|
10289
10754
|
*/
|
|
10290
|
-
|
|
10755
|
+
once(event: 'balloon-closed', listener: Function): this;
|
|
10756
|
+
/**
|
|
10757
|
+
* @platform win32
|
|
10758
|
+
*/
|
|
10759
|
+
addListener(event: 'balloon-closed', listener: Function): this;
|
|
10760
|
+
/**
|
|
10761
|
+
* @platform win32
|
|
10762
|
+
*/
|
|
10763
|
+
removeListener(event: 'balloon-closed', listener: Function): this;
|
|
10764
|
+
/**
|
|
10765
|
+
* Emitted when the tray balloon shows.
|
|
10766
|
+
*
|
|
10767
|
+
* @platform win32
|
|
10768
|
+
*/
|
|
10769
|
+
on(event: 'balloon-show', listener: Function): this;
|
|
10770
|
+
/**
|
|
10771
|
+
* @platform win32
|
|
10772
|
+
*/
|
|
10291
10773
|
off(event: 'balloon-show', listener: Function): this;
|
|
10774
|
+
/**
|
|
10775
|
+
* @platform win32
|
|
10776
|
+
*/
|
|
10292
10777
|
once(event: 'balloon-show', listener: Function): this;
|
|
10778
|
+
/**
|
|
10779
|
+
* @platform win32
|
|
10780
|
+
*/
|
|
10293
10781
|
addListener(event: 'balloon-show', listener: Function): this;
|
|
10782
|
+
/**
|
|
10783
|
+
* @platform win32
|
|
10784
|
+
*/
|
|
10294
10785
|
removeListener(event: 'balloon-show', listener: Function): this;
|
|
10295
10786
|
/**
|
|
10296
10787
|
* Emitted when the tray icon is clicked.
|
|
@@ -10353,21 +10844,33 @@ declare namespace Electron {
|
|
|
10353
10844
|
* The bounds of tray icon.
|
|
10354
10845
|
*/
|
|
10355
10846
|
bounds: Rectangle) => void): this;
|
|
10847
|
+
/**
|
|
10848
|
+
* @platform darwin,win32
|
|
10849
|
+
*/
|
|
10356
10850
|
off(event: 'double-click', listener: (event: KeyboardEvent,
|
|
10357
10851
|
/**
|
|
10358
10852
|
* The bounds of tray icon.
|
|
10359
10853
|
*/
|
|
10360
10854
|
bounds: Rectangle) => void): this;
|
|
10855
|
+
/**
|
|
10856
|
+
* @platform darwin,win32
|
|
10857
|
+
*/
|
|
10361
10858
|
once(event: 'double-click', listener: (event: KeyboardEvent,
|
|
10362
10859
|
/**
|
|
10363
10860
|
* The bounds of tray icon.
|
|
10364
10861
|
*/
|
|
10365
10862
|
bounds: Rectangle) => void): this;
|
|
10863
|
+
/**
|
|
10864
|
+
* @platform darwin,win32
|
|
10865
|
+
*/
|
|
10366
10866
|
addListener(event: 'double-click', listener: (event: KeyboardEvent,
|
|
10367
10867
|
/**
|
|
10368
10868
|
* The bounds of tray icon.
|
|
10369
10869
|
*/
|
|
10370
10870
|
bounds: Rectangle) => void): this;
|
|
10871
|
+
/**
|
|
10872
|
+
* @platform darwin,win32
|
|
10873
|
+
*/
|
|
10371
10874
|
removeListener(event: 'double-click', listener: (event: KeyboardEvent,
|
|
10372
10875
|
/**
|
|
10373
10876
|
* The bounds of tray icon.
|
|
@@ -10379,9 +10882,21 @@ declare namespace Electron {
|
|
|
10379
10882
|
* @platform darwin
|
|
10380
10883
|
*/
|
|
10381
10884
|
on(event: 'drag-end', listener: Function): this;
|
|
10885
|
+
/**
|
|
10886
|
+
* @platform darwin
|
|
10887
|
+
*/
|
|
10382
10888
|
off(event: 'drag-end', listener: Function): this;
|
|
10889
|
+
/**
|
|
10890
|
+
* @platform darwin
|
|
10891
|
+
*/
|
|
10383
10892
|
once(event: 'drag-end', listener: Function): this;
|
|
10893
|
+
/**
|
|
10894
|
+
* @platform darwin
|
|
10895
|
+
*/
|
|
10384
10896
|
addListener(event: 'drag-end', listener: Function): this;
|
|
10897
|
+
/**
|
|
10898
|
+
* @platform darwin
|
|
10899
|
+
*/
|
|
10385
10900
|
removeListener(event: 'drag-end', listener: Function): this;
|
|
10386
10901
|
/**
|
|
10387
10902
|
* Emitted when a drag operation enters the tray icon.
|
|
@@ -10389,9 +10904,21 @@ declare namespace Electron {
|
|
|
10389
10904
|
* @platform darwin
|
|
10390
10905
|
*/
|
|
10391
10906
|
on(event: 'drag-enter', listener: Function): this;
|
|
10907
|
+
/**
|
|
10908
|
+
* @platform darwin
|
|
10909
|
+
*/
|
|
10392
10910
|
off(event: 'drag-enter', listener: Function): this;
|
|
10911
|
+
/**
|
|
10912
|
+
* @platform darwin
|
|
10913
|
+
*/
|
|
10393
10914
|
once(event: 'drag-enter', listener: Function): this;
|
|
10915
|
+
/**
|
|
10916
|
+
* @platform darwin
|
|
10917
|
+
*/
|
|
10394
10918
|
addListener(event: 'drag-enter', listener: Function): this;
|
|
10919
|
+
/**
|
|
10920
|
+
* @platform darwin
|
|
10921
|
+
*/
|
|
10395
10922
|
removeListener(event: 'drag-enter', listener: Function): this;
|
|
10396
10923
|
/**
|
|
10397
10924
|
* Emitted when a drag operation exits the tray icon.
|
|
@@ -10399,9 +10926,21 @@ declare namespace Electron {
|
|
|
10399
10926
|
* @platform darwin
|
|
10400
10927
|
*/
|
|
10401
10928
|
on(event: 'drag-leave', listener: Function): this;
|
|
10929
|
+
/**
|
|
10930
|
+
* @platform darwin
|
|
10931
|
+
*/
|
|
10402
10932
|
off(event: 'drag-leave', listener: Function): this;
|
|
10933
|
+
/**
|
|
10934
|
+
* @platform darwin
|
|
10935
|
+
*/
|
|
10403
10936
|
once(event: 'drag-leave', listener: Function): this;
|
|
10937
|
+
/**
|
|
10938
|
+
* @platform darwin
|
|
10939
|
+
*/
|
|
10404
10940
|
addListener(event: 'drag-leave', listener: Function): this;
|
|
10941
|
+
/**
|
|
10942
|
+
* @platform darwin
|
|
10943
|
+
*/
|
|
10405
10944
|
removeListener(event: 'drag-leave', listener: Function): this;
|
|
10406
10945
|
/**
|
|
10407
10946
|
* Emitted when any dragged items are dropped on the tray icon.
|
|
@@ -10409,9 +10948,21 @@ declare namespace Electron {
|
|
|
10409
10948
|
* @platform darwin
|
|
10410
10949
|
*/
|
|
10411
10950
|
on(event: 'drop', listener: Function): this;
|
|
10951
|
+
/**
|
|
10952
|
+
* @platform darwin
|
|
10953
|
+
*/
|
|
10412
10954
|
off(event: 'drop', listener: Function): this;
|
|
10955
|
+
/**
|
|
10956
|
+
* @platform darwin
|
|
10957
|
+
*/
|
|
10413
10958
|
once(event: 'drop', listener: Function): this;
|
|
10959
|
+
/**
|
|
10960
|
+
* @platform darwin
|
|
10961
|
+
*/
|
|
10414
10962
|
addListener(event: 'drop', listener: Function): this;
|
|
10963
|
+
/**
|
|
10964
|
+
* @platform darwin
|
|
10965
|
+
*/
|
|
10415
10966
|
removeListener(event: 'drop', listener: Function): this;
|
|
10416
10967
|
/**
|
|
10417
10968
|
* Emitted when dragged files are dropped in the tray icon.
|
|
@@ -10423,21 +10974,33 @@ declare namespace Electron {
|
|
|
10423
10974
|
* The paths of the dropped files.
|
|
10424
10975
|
*/
|
|
10425
10976
|
files: string[]) => void): this;
|
|
10977
|
+
/**
|
|
10978
|
+
* @platform darwin
|
|
10979
|
+
*/
|
|
10426
10980
|
off(event: 'drop-files', listener: (event: Event,
|
|
10427
10981
|
/**
|
|
10428
10982
|
* The paths of the dropped files.
|
|
10429
10983
|
*/
|
|
10430
10984
|
files: string[]) => void): this;
|
|
10985
|
+
/**
|
|
10986
|
+
* @platform darwin
|
|
10987
|
+
*/
|
|
10431
10988
|
once(event: 'drop-files', listener: (event: Event,
|
|
10432
10989
|
/**
|
|
10433
10990
|
* The paths of the dropped files.
|
|
10434
10991
|
*/
|
|
10435
10992
|
files: string[]) => void): this;
|
|
10993
|
+
/**
|
|
10994
|
+
* @platform darwin
|
|
10995
|
+
*/
|
|
10436
10996
|
addListener(event: 'drop-files', listener: (event: Event,
|
|
10437
10997
|
/**
|
|
10438
10998
|
* The paths of the dropped files.
|
|
10439
10999
|
*/
|
|
10440
11000
|
files: string[]) => void): this;
|
|
11001
|
+
/**
|
|
11002
|
+
* @platform darwin
|
|
11003
|
+
*/
|
|
10441
11004
|
removeListener(event: 'drop-files', listener: (event: Event,
|
|
10442
11005
|
/**
|
|
10443
11006
|
* The paths of the dropped files.
|
|
@@ -10453,21 +11016,33 @@ declare namespace Electron {
|
|
|
10453
11016
|
* the dropped text string.
|
|
10454
11017
|
*/
|
|
10455
11018
|
text: string) => void): this;
|
|
11019
|
+
/**
|
|
11020
|
+
* @platform darwin
|
|
11021
|
+
*/
|
|
10456
11022
|
off(event: 'drop-text', listener: (event: Event,
|
|
10457
11023
|
/**
|
|
10458
11024
|
* the dropped text string.
|
|
10459
11025
|
*/
|
|
10460
11026
|
text: string) => void): this;
|
|
11027
|
+
/**
|
|
11028
|
+
* @platform darwin
|
|
11029
|
+
*/
|
|
10461
11030
|
once(event: 'drop-text', listener: (event: Event,
|
|
10462
11031
|
/**
|
|
10463
11032
|
* the dropped text string.
|
|
10464
11033
|
*/
|
|
10465
11034
|
text: string) => void): this;
|
|
11035
|
+
/**
|
|
11036
|
+
* @platform darwin
|
|
11037
|
+
*/
|
|
10466
11038
|
addListener(event: 'drop-text', listener: (event: Event,
|
|
10467
11039
|
/**
|
|
10468
11040
|
* the dropped text string.
|
|
10469
11041
|
*/
|
|
10470
11042
|
text: string) => void): this;
|
|
11043
|
+
/**
|
|
11044
|
+
* @platform darwin
|
|
11045
|
+
*/
|
|
10471
11046
|
removeListener(event: 'drop-text', listener: (event: Event,
|
|
10472
11047
|
/**
|
|
10473
11048
|
* the dropped text string.
|
|
@@ -10483,21 +11058,33 @@ declare namespace Electron {
|
|
|
10483
11058
|
* The bounds of tray icon.
|
|
10484
11059
|
*/
|
|
10485
11060
|
bounds: Rectangle) => void): this;
|
|
11061
|
+
/**
|
|
11062
|
+
* @platform win32
|
|
11063
|
+
*/
|
|
10486
11064
|
off(event: 'middle-click', listener: (event: KeyboardEvent,
|
|
10487
11065
|
/**
|
|
10488
11066
|
* The bounds of tray icon.
|
|
10489
11067
|
*/
|
|
10490
11068
|
bounds: Rectangle) => void): this;
|
|
11069
|
+
/**
|
|
11070
|
+
* @platform win32
|
|
11071
|
+
*/
|
|
10491
11072
|
once(event: 'middle-click', listener: (event: KeyboardEvent,
|
|
10492
11073
|
/**
|
|
10493
11074
|
* The bounds of tray icon.
|
|
10494
11075
|
*/
|
|
10495
11076
|
bounds: Rectangle) => void): this;
|
|
11077
|
+
/**
|
|
11078
|
+
* @platform win32
|
|
11079
|
+
*/
|
|
10496
11080
|
addListener(event: 'middle-click', listener: (event: KeyboardEvent,
|
|
10497
11081
|
/**
|
|
10498
11082
|
* The bounds of tray icon.
|
|
10499
11083
|
*/
|
|
10500
11084
|
bounds: Rectangle) => void): this;
|
|
11085
|
+
/**
|
|
11086
|
+
* @platform win32
|
|
11087
|
+
*/
|
|
10501
11088
|
removeListener(event: 'middle-click', listener: (event: KeyboardEvent,
|
|
10502
11089
|
/**
|
|
10503
11090
|
* The bounds of tray icon.
|
|
@@ -10513,21 +11100,33 @@ declare namespace Electron {
|
|
|
10513
11100
|
* The position of the event.
|
|
10514
11101
|
*/
|
|
10515
11102
|
position: Point) => void): this;
|
|
11103
|
+
/**
|
|
11104
|
+
* @platform darwin
|
|
11105
|
+
*/
|
|
10516
11106
|
off(event: 'mouse-down', listener: (event: KeyboardEvent,
|
|
10517
11107
|
/**
|
|
10518
11108
|
* The position of the event.
|
|
10519
11109
|
*/
|
|
10520
11110
|
position: Point) => void): this;
|
|
11111
|
+
/**
|
|
11112
|
+
* @platform darwin
|
|
11113
|
+
*/
|
|
10521
11114
|
once(event: 'mouse-down', listener: (event: KeyboardEvent,
|
|
10522
11115
|
/**
|
|
10523
11116
|
* The position of the event.
|
|
10524
11117
|
*/
|
|
10525
11118
|
position: Point) => void): this;
|
|
11119
|
+
/**
|
|
11120
|
+
* @platform darwin
|
|
11121
|
+
*/
|
|
10526
11122
|
addListener(event: 'mouse-down', listener: (event: KeyboardEvent,
|
|
10527
11123
|
/**
|
|
10528
11124
|
* The position of the event.
|
|
10529
11125
|
*/
|
|
10530
11126
|
position: Point) => void): this;
|
|
11127
|
+
/**
|
|
11128
|
+
* @platform darwin
|
|
11129
|
+
*/
|
|
10531
11130
|
removeListener(event: 'mouse-down', listener: (event: KeyboardEvent,
|
|
10532
11131
|
/**
|
|
10533
11132
|
* The position of the event.
|
|
@@ -10543,21 +11142,33 @@ declare namespace Electron {
|
|
|
10543
11142
|
* The position of the event.
|
|
10544
11143
|
*/
|
|
10545
11144
|
position: Point) => void): this;
|
|
11145
|
+
/**
|
|
11146
|
+
* @platform darwin,win32
|
|
11147
|
+
*/
|
|
10546
11148
|
off(event: 'mouse-enter', listener: (event: KeyboardEvent,
|
|
10547
11149
|
/**
|
|
10548
11150
|
* The position of the event.
|
|
10549
11151
|
*/
|
|
10550
11152
|
position: Point) => void): this;
|
|
11153
|
+
/**
|
|
11154
|
+
* @platform darwin,win32
|
|
11155
|
+
*/
|
|
10551
11156
|
once(event: 'mouse-enter', listener: (event: KeyboardEvent,
|
|
10552
11157
|
/**
|
|
10553
11158
|
* The position of the event.
|
|
10554
11159
|
*/
|
|
10555
11160
|
position: Point) => void): this;
|
|
11161
|
+
/**
|
|
11162
|
+
* @platform darwin,win32
|
|
11163
|
+
*/
|
|
10556
11164
|
addListener(event: 'mouse-enter', listener: (event: KeyboardEvent,
|
|
10557
11165
|
/**
|
|
10558
11166
|
* The position of the event.
|
|
10559
11167
|
*/
|
|
10560
11168
|
position: Point) => void): this;
|
|
11169
|
+
/**
|
|
11170
|
+
* @platform darwin,win32
|
|
11171
|
+
*/
|
|
10561
11172
|
removeListener(event: 'mouse-enter', listener: (event: KeyboardEvent,
|
|
10562
11173
|
/**
|
|
10563
11174
|
* The position of the event.
|
|
@@ -10573,21 +11184,33 @@ declare namespace Electron {
|
|
|
10573
11184
|
* The position of the event.
|
|
10574
11185
|
*/
|
|
10575
11186
|
position: Point) => void): this;
|
|
11187
|
+
/**
|
|
11188
|
+
* @platform darwin,win32
|
|
11189
|
+
*/
|
|
10576
11190
|
off(event: 'mouse-leave', listener: (event: KeyboardEvent,
|
|
10577
11191
|
/**
|
|
10578
11192
|
* The position of the event.
|
|
10579
11193
|
*/
|
|
10580
11194
|
position: Point) => void): this;
|
|
11195
|
+
/**
|
|
11196
|
+
* @platform darwin,win32
|
|
11197
|
+
*/
|
|
10581
11198
|
once(event: 'mouse-leave', listener: (event: KeyboardEvent,
|
|
10582
11199
|
/**
|
|
10583
11200
|
* The position of the event.
|
|
10584
11201
|
*/
|
|
10585
11202
|
position: Point) => void): this;
|
|
11203
|
+
/**
|
|
11204
|
+
* @platform darwin,win32
|
|
11205
|
+
*/
|
|
10586
11206
|
addListener(event: 'mouse-leave', listener: (event: KeyboardEvent,
|
|
10587
11207
|
/**
|
|
10588
11208
|
* The position of the event.
|
|
10589
11209
|
*/
|
|
10590
11210
|
position: Point) => void): this;
|
|
11211
|
+
/**
|
|
11212
|
+
* @platform darwin,win32
|
|
11213
|
+
*/
|
|
10591
11214
|
removeListener(event: 'mouse-leave', listener: (event: KeyboardEvent,
|
|
10592
11215
|
/**
|
|
10593
11216
|
* The position of the event.
|
|
@@ -10603,21 +11226,33 @@ declare namespace Electron {
|
|
|
10603
11226
|
* The position of the event.
|
|
10604
11227
|
*/
|
|
10605
11228
|
position: Point) => void): this;
|
|
11229
|
+
/**
|
|
11230
|
+
* @platform darwin,win32
|
|
11231
|
+
*/
|
|
10606
11232
|
off(event: 'mouse-move', listener: (event: KeyboardEvent,
|
|
10607
11233
|
/**
|
|
10608
11234
|
* The position of the event.
|
|
10609
11235
|
*/
|
|
10610
11236
|
position: Point) => void): this;
|
|
11237
|
+
/**
|
|
11238
|
+
* @platform darwin,win32
|
|
11239
|
+
*/
|
|
10611
11240
|
once(event: 'mouse-move', listener: (event: KeyboardEvent,
|
|
10612
11241
|
/**
|
|
10613
11242
|
* The position of the event.
|
|
10614
11243
|
*/
|
|
10615
11244
|
position: Point) => void): this;
|
|
11245
|
+
/**
|
|
11246
|
+
* @platform darwin,win32
|
|
11247
|
+
*/
|
|
10616
11248
|
addListener(event: 'mouse-move', listener: (event: KeyboardEvent,
|
|
10617
11249
|
/**
|
|
10618
11250
|
* The position of the event.
|
|
10619
11251
|
*/
|
|
10620
11252
|
position: Point) => void): this;
|
|
11253
|
+
/**
|
|
11254
|
+
* @platform darwin,win32
|
|
11255
|
+
*/
|
|
10621
11256
|
removeListener(event: 'mouse-move', listener: (event: KeyboardEvent,
|
|
10622
11257
|
/**
|
|
10623
11258
|
* The position of the event.
|
|
@@ -10636,21 +11271,33 @@ declare namespace Electron {
|
|
|
10636
11271
|
* The position of the event.
|
|
10637
11272
|
*/
|
|
10638
11273
|
position: Point) => void): this;
|
|
11274
|
+
/**
|
|
11275
|
+
* @platform darwin
|
|
11276
|
+
*/
|
|
10639
11277
|
off(event: 'mouse-up', listener: (event: KeyboardEvent,
|
|
10640
11278
|
/**
|
|
10641
11279
|
* The position of the event.
|
|
10642
11280
|
*/
|
|
10643
11281
|
position: Point) => void): this;
|
|
11282
|
+
/**
|
|
11283
|
+
* @platform darwin
|
|
11284
|
+
*/
|
|
10644
11285
|
once(event: 'mouse-up', listener: (event: KeyboardEvent,
|
|
10645
11286
|
/**
|
|
10646
11287
|
* The position of the event.
|
|
10647
11288
|
*/
|
|
10648
11289
|
position: Point) => void): this;
|
|
11290
|
+
/**
|
|
11291
|
+
* @platform darwin
|
|
11292
|
+
*/
|
|
10649
11293
|
addListener(event: 'mouse-up', listener: (event: KeyboardEvent,
|
|
10650
11294
|
/**
|
|
10651
11295
|
* The position of the event.
|
|
10652
11296
|
*/
|
|
10653
11297
|
position: Point) => void): this;
|
|
11298
|
+
/**
|
|
11299
|
+
* @platform darwin
|
|
11300
|
+
*/
|
|
10654
11301
|
removeListener(event: 'mouse-up', listener: (event: KeyboardEvent,
|
|
10655
11302
|
/**
|
|
10656
11303
|
* The position of the event.
|
|
@@ -10666,21 +11313,33 @@ declare namespace Electron {
|
|
|
10666
11313
|
* The bounds of tray icon.
|
|
10667
11314
|
*/
|
|
10668
11315
|
bounds: Rectangle) => void): this;
|
|
11316
|
+
/**
|
|
11317
|
+
* @platform darwin,win32
|
|
11318
|
+
*/
|
|
10669
11319
|
off(event: 'right-click', listener: (event: KeyboardEvent,
|
|
10670
11320
|
/**
|
|
10671
11321
|
* The bounds of tray icon.
|
|
10672
11322
|
*/
|
|
10673
11323
|
bounds: Rectangle) => void): this;
|
|
11324
|
+
/**
|
|
11325
|
+
* @platform darwin,win32
|
|
11326
|
+
*/
|
|
10674
11327
|
once(event: 'right-click', listener: (event: KeyboardEvent,
|
|
10675
11328
|
/**
|
|
10676
11329
|
* The bounds of tray icon.
|
|
10677
11330
|
*/
|
|
10678
11331
|
bounds: Rectangle) => void): this;
|
|
11332
|
+
/**
|
|
11333
|
+
* @platform darwin,win32
|
|
11334
|
+
*/
|
|
10679
11335
|
addListener(event: 'right-click', listener: (event: KeyboardEvent,
|
|
10680
11336
|
/**
|
|
10681
11337
|
* The bounds of tray icon.
|
|
10682
11338
|
*/
|
|
10683
11339
|
bounds: Rectangle) => void): this;
|
|
11340
|
+
/**
|
|
11341
|
+
* @platform darwin,win32
|
|
11342
|
+
*/
|
|
10684
11343
|
removeListener(event: 'right-click', listener: (event: KeyboardEvent,
|
|
10685
11344
|
/**
|
|
10686
11345
|
* The bounds of tray icon.
|
|
@@ -11269,26 +11928,6 @@ declare namespace Electron {
|
|
|
11269
11928
|
params: ContextMenuParams) => void): this;
|
|
11270
11929
|
removeListener(event: 'context-menu', listener: (event: Event,
|
|
11271
11930
|
params: ContextMenuParams) => void): this;
|
|
11272
|
-
/**
|
|
11273
|
-
* Emitted when the renderer process crashes or is killed.
|
|
11274
|
-
*
|
|
11275
|
-
* **Deprecated:** This event is superceded by the `render-process-gone` event
|
|
11276
|
-
* which contains more information about why the render process disappeared. It
|
|
11277
|
-
* isn't always because it crashed. The `killed` boolean can be replaced by
|
|
11278
|
-
* checking `reason === 'killed'` when you switch to that event.
|
|
11279
|
-
*
|
|
11280
|
-
* @deprecated
|
|
11281
|
-
*/
|
|
11282
|
-
on(event: 'crashed', listener: (event: Event,
|
|
11283
|
-
killed: boolean) => void): this;
|
|
11284
|
-
off(event: 'crashed', listener: (event: Event,
|
|
11285
|
-
killed: boolean) => void): this;
|
|
11286
|
-
once(event: 'crashed', listener: (event: Event,
|
|
11287
|
-
killed: boolean) => void): this;
|
|
11288
|
-
addListener(event: 'crashed', listener: (event: Event,
|
|
11289
|
-
killed: boolean) => void): this;
|
|
11290
|
-
removeListener(event: 'crashed', listener: (event: Event,
|
|
11291
|
-
killed: boolean) => void): this;
|
|
11292
11931
|
/**
|
|
11293
11932
|
* Emitted when the cursor's type changes. The `type` parameter can be `pointer`,
|
|
11294
11933
|
* `crosshair`, `hand`, `text`, `wait`, `help`, `e-resize`, `n-resize`,
|
|
@@ -14316,6 +14955,22 @@ declare namespace Electron {
|
|
|
14316
14955
|
url?: string;
|
|
14317
14956
|
}
|
|
14318
14957
|
|
|
14958
|
+
interface WebUtils extends NodeJS.EventEmitter {
|
|
14959
|
+
|
|
14960
|
+
// Docs: https://electronjs.org/docs/api/web-utils
|
|
14961
|
+
|
|
14962
|
+
/**
|
|
14963
|
+
* The file system path that this `File` object points to. In the case where the
|
|
14964
|
+
* object passed in is not a `File` object an exception is thrown. In the case
|
|
14965
|
+
* where the File object passed in was constructed in JS and is not backed by a
|
|
14966
|
+
* file on disk an empty string is returned.
|
|
14967
|
+
*
|
|
14968
|
+
* This method superceded the previous augmentation to the `File` object with the
|
|
14969
|
+
* `path` property. An example is included below.
|
|
14970
|
+
*/
|
|
14971
|
+
getPathForFile(file: File): string;
|
|
14972
|
+
}
|
|
14973
|
+
|
|
14319
14974
|
interface WebviewTag extends HTMLElement {
|
|
14320
14975
|
|
|
14321
14976
|
// Docs: https://electronjs.org/docs/api/webview-tag
|
|
@@ -14484,17 +15139,6 @@ declare namespace Electron {
|
|
|
14484
15139
|
*/
|
|
14485
15140
|
addEventListener(event: 'ipc-message', listener: (event: IpcMessageEvent) => void, useCapture?: boolean): this;
|
|
14486
15141
|
removeEventListener(event: 'ipc-message', listener: (event: IpcMessageEvent) => void): this;
|
|
14487
|
-
/**
|
|
14488
|
-
* Fired when the renderer process crashes or is killed.
|
|
14489
|
-
*
|
|
14490
|
-
* **Deprecated:** This event is superceded by the `render-process-gone` event
|
|
14491
|
-
* which contains more information about why the render process disappeared. It
|
|
14492
|
-
* isn't always because it crashed.
|
|
14493
|
-
*
|
|
14494
|
-
* @deprecated
|
|
14495
|
-
*/
|
|
14496
|
-
addEventListener(event: 'crashed', listener: (event: DOMEvent) => void, useCapture?: boolean): this;
|
|
14497
|
-
removeEventListener(event: 'crashed', listener: (event: DOMEvent) => void): this;
|
|
14498
15142
|
/**
|
|
14499
15143
|
* Fired when the renderer process unexpectedly disappears. This is normally
|
|
14500
15144
|
* because it was crashed or killed.
|
|
@@ -16364,24 +17008,27 @@ declare namespace Electron {
|
|
|
16364
17008
|
*/
|
|
16365
17009
|
openAtLogin: boolean;
|
|
16366
17010
|
/**
|
|
16367
|
-
* `true` if the app is set to open as hidden at login. This
|
|
16368
|
-
*
|
|
17011
|
+
* `true` if the app is set to open as hidden at login. This does not work on macOS
|
|
17012
|
+
* 13 and up.
|
|
16369
17013
|
*
|
|
17014
|
+
* @deprecated
|
|
16370
17015
|
* @platform darwin
|
|
16371
17016
|
*/
|
|
16372
17017
|
openAsHidden: boolean;
|
|
16373
17018
|
/**
|
|
16374
17019
|
* `true` if the app was opened at login automatically. This setting is not
|
|
16375
|
-
* available on MAS builds.
|
|
17020
|
+
* available on MAS builds or on macOS 13 and up.
|
|
16376
17021
|
*
|
|
17022
|
+
* @deprecated
|
|
16377
17023
|
* @platform darwin
|
|
16378
17024
|
*/
|
|
16379
17025
|
wasOpenedAtLogin: boolean;
|
|
16380
17026
|
/**
|
|
16381
17027
|
* `true` if the app was opened as a hidden login item. This indicates that the app
|
|
16382
17028
|
* should not open any windows at startup. This setting is not available on MAS
|
|
16383
|
-
* builds.
|
|
17029
|
+
* builds or on macOS 13 and up.
|
|
16384
17030
|
*
|
|
17031
|
+
* @deprecated
|
|
16385
17032
|
* @platform darwin
|
|
16386
17033
|
*/
|
|
16387
17034
|
wasOpenedAsHidden: boolean;
|
|
@@ -16389,11 +17036,18 @@ declare namespace Electron {
|
|
|
16389
17036
|
* `true` if the app was opened as a login item that should restore the state from
|
|
16390
17037
|
* the previous session. This indicates that the app should restore the windows
|
|
16391
17038
|
* that were open the last time the app was closed. This setting is not available
|
|
16392
|
-
* on MAS builds.
|
|
17039
|
+
* on MAS builds or on macOS 13 and up.
|
|
16393
17040
|
*
|
|
17041
|
+
* @deprecated
|
|
16394
17042
|
* @platform darwin
|
|
16395
17043
|
*/
|
|
16396
17044
|
restoreState: boolean;
|
|
17045
|
+
/**
|
|
17046
|
+
* can be one of `not-registered`, `enabled`, `requires-approval`, or `not-found`.
|
|
17047
|
+
*
|
|
17048
|
+
* @platform darwin
|
|
17049
|
+
*/
|
|
17050
|
+
status: string;
|
|
16397
17051
|
/**
|
|
16398
17052
|
* `true` if app is set to open at login and its run key is not deactivated. This
|
|
16399
17053
|
* differs from `openAtLogin` as it ignores the `args` option, this property will
|
|
@@ -16407,6 +17061,21 @@ declare namespace Electron {
|
|
|
16407
17061
|
}
|
|
16408
17062
|
|
|
16409
17063
|
interface LoginItemSettingsOptions {
|
|
17064
|
+
/**
|
|
17065
|
+
* Can be one of `mainAppService`, `agentService`, `daemonService`, or
|
|
17066
|
+
* `loginItemService`. Defaults to `mainAppService`. Only available on macOS 13 and
|
|
17067
|
+
* up. See app.setLoginItemSettings for more information about each type.
|
|
17068
|
+
*
|
|
17069
|
+
* @platform darwin
|
|
17070
|
+
*/
|
|
17071
|
+
type?: string;
|
|
17072
|
+
/**
|
|
17073
|
+
* The name of the service. Required if `type` is non-default. Only available on
|
|
17074
|
+
* macOS 13 and up.
|
|
17075
|
+
*
|
|
17076
|
+
* @platform darwin
|
|
17077
|
+
*/
|
|
17078
|
+
serviceName?: string;
|
|
16410
17079
|
/**
|
|
16411
17080
|
* The executable path to compare against. Defaults to `process.execPath`.
|
|
16412
17081
|
*
|
|
@@ -17335,6 +18004,11 @@ declare namespace Electron {
|
|
|
17335
18004
|
* Default false.
|
|
17336
18005
|
*/
|
|
17337
18006
|
stream?: boolean;
|
|
18007
|
+
/**
|
|
18008
|
+
* Enable V8 code cache for the scheme, only works when `standard` is also set to
|
|
18009
|
+
* true. Default false.
|
|
18010
|
+
*/
|
|
18011
|
+
codeCache?: boolean;
|
|
17338
18012
|
}
|
|
17339
18013
|
|
|
17340
18014
|
interface ProgressBarOptions {
|
|
@@ -17628,11 +18302,27 @@ declare namespace Electron {
|
|
|
17628
18302
|
* `true` to open the app as hidden. Defaults to `false`. The user can edit this
|
|
17629
18303
|
* setting from the System Preferences so
|
|
17630
18304
|
* `app.getLoginItemSettings().wasOpenedAsHidden` should be checked when the app is
|
|
17631
|
-
* opened to know the current value. This setting is not available on MAS
|
|
18305
|
+
* opened to know the current value. This setting is not available on MAS build s
|
|
18306
|
+
* or on macOS 13 and up.
|
|
17632
18307
|
*
|
|
18308
|
+
* @deprecated
|
|
17633
18309
|
* @platform darwin
|
|
17634
18310
|
*/
|
|
17635
18311
|
openAsHidden?: boolean;
|
|
18312
|
+
/**
|
|
18313
|
+
* The type of service to add as a login item. Defaults to `mainAppService`. Only
|
|
18314
|
+
* available on macOS 13 and up.
|
|
18315
|
+
*
|
|
18316
|
+
* @platform darwin
|
|
18317
|
+
*/
|
|
18318
|
+
type?: ('mainAppService' | 'agentService' | 'daemonService' | 'loginItemService');
|
|
18319
|
+
/**
|
|
18320
|
+
* The name of the service. Required if `type` is non-default. Only available on
|
|
18321
|
+
* macOS 13 and up.
|
|
18322
|
+
*
|
|
18323
|
+
* @platform darwin
|
|
18324
|
+
*/
|
|
18325
|
+
serviceName?: string;
|
|
17636
18326
|
/**
|
|
17637
18327
|
* The executable to launch at login. Defaults to `process.execPath`.
|
|
17638
18328
|
*
|
|
@@ -17654,8 +18344,7 @@ declare namespace Electron {
|
|
|
17654
18344
|
*/
|
|
17655
18345
|
enabled?: boolean;
|
|
17656
18346
|
/**
|
|
17657
|
-
* value name to write into registry. Defaults to the app's AppUserModelId().
|
|
17658
|
-
* the app's login item settings.
|
|
18347
|
+
* value name to write into registry. Defaults to the app's AppUserModelId().
|
|
17659
18348
|
*
|
|
17660
18349
|
* @platform win32
|
|
17661
18350
|
*/
|
|
@@ -17785,37 +18474,16 @@ declare namespace Electron {
|
|
|
17785
18474
|
height?: number;
|
|
17786
18475
|
}
|
|
17787
18476
|
|
|
17788
|
-
interface
|
|
18477
|
+
interface TitleOptions {
|
|
17789
18478
|
/**
|
|
17790
|
-
* The
|
|
17791
|
-
*
|
|
17792
|
-
*
|
|
18479
|
+
* The font family variant to display, can be `monospaced` or `monospacedDigit`.
|
|
18480
|
+
* `monospaced` is available in macOS 10.15+ When left blank, the title uses the
|
|
18481
|
+
* default system font.
|
|
17793
18482
|
*/
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
* @platform win32
|
|
17799
|
-
*/
|
|
17800
|
-
symbolColor?: string;
|
|
17801
|
-
/**
|
|
17802
|
-
* The height of the title bar and Window Controls Overlay in pixels.
|
|
17803
|
-
*
|
|
17804
|
-
* @platform darwin,win32
|
|
17805
|
-
*/
|
|
17806
|
-
height?: number;
|
|
17807
|
-
}
|
|
17808
|
-
|
|
17809
|
-
interface TitleOptions {
|
|
17810
|
-
/**
|
|
17811
|
-
* The font family variant to display, can be `monospaced` or `monospacedDigit`.
|
|
17812
|
-
* `monospaced` is available in macOS 10.15+ When left blank, the title uses the
|
|
17813
|
-
* default system font.
|
|
17814
|
-
*/
|
|
17815
|
-
fontType?: ('monospaced' | 'monospacedDigit');
|
|
17816
|
-
}
|
|
17817
|
-
|
|
17818
|
-
interface ToBitmapOptions {
|
|
18483
|
+
fontType?: ('monospaced' | 'monospacedDigit');
|
|
18484
|
+
}
|
|
18485
|
+
|
|
18486
|
+
interface ToBitmapOptions {
|
|
17819
18487
|
/**
|
|
17820
18488
|
* Defaults to 1.0.
|
|
17821
18489
|
*/
|
|
@@ -18722,44 +19390,6 @@ declare namespace Electron {
|
|
|
18722
19390
|
name: string;
|
|
18723
19391
|
}
|
|
18724
19392
|
|
|
18725
|
-
interface RemoteMainInterface {
|
|
18726
|
-
app: App;
|
|
18727
|
-
autoUpdater: AutoUpdater;
|
|
18728
|
-
BrowserView: typeof BrowserView;
|
|
18729
|
-
BrowserWindow: typeof BrowserWindow;
|
|
18730
|
-
clipboard: Clipboard;
|
|
18731
|
-
contentTracing: ContentTracing;
|
|
18732
|
-
crashReporter: CrashReporter;
|
|
18733
|
-
desktopCapturer: DesktopCapturer;
|
|
18734
|
-
dialog: Dialog;
|
|
18735
|
-
globalShortcut: GlobalShortcut;
|
|
18736
|
-
inAppPurchase: InAppPurchase;
|
|
18737
|
-
ipcMain: IpcMain;
|
|
18738
|
-
Menu: typeof Menu;
|
|
18739
|
-
MenuItem: typeof MenuItem;
|
|
18740
|
-
MessageChannelMain: typeof MessageChannelMain;
|
|
18741
|
-
nativeImage: typeof NativeImage;
|
|
18742
|
-
nativeTheme: NativeTheme;
|
|
18743
|
-
net: Net;
|
|
18744
|
-
netLog: NetLog;
|
|
18745
|
-
Notification: typeof Notification;
|
|
18746
|
-
powerMonitor: PowerMonitor;
|
|
18747
|
-
powerSaveBlocker: PowerSaveBlocker;
|
|
18748
|
-
protocol: Protocol;
|
|
18749
|
-
pushNotifications: PushNotifications;
|
|
18750
|
-
safeStorage: SafeStorage;
|
|
18751
|
-
screen: Screen;
|
|
18752
|
-
session: typeof Session;
|
|
18753
|
-
ShareMenu: typeof ShareMenu;
|
|
18754
|
-
shell: Shell;
|
|
18755
|
-
systemPreferences: SystemPreferences;
|
|
18756
|
-
TouchBar: typeof TouchBar;
|
|
18757
|
-
Tray: typeof Tray;
|
|
18758
|
-
utilityProcess: typeof UtilityProcess;
|
|
18759
|
-
webContents: typeof WebContents;
|
|
18760
|
-
webFrameMain: typeof WebFrameMain;
|
|
18761
|
-
}
|
|
18762
|
-
|
|
18763
19393
|
|
|
18764
19394
|
|
|
18765
19395
|
namespace Common {
|
|
@@ -18911,7 +19541,6 @@ declare namespace Electron {
|
|
|
18911
19541
|
type Streams = Electron.Streams;
|
|
18912
19542
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
18913
19543
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
18914
|
-
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
18915
19544
|
type TitleOptions = Electron.TitleOptions;
|
|
18916
19545
|
type ToBitmapOptions = Electron.ToBitmapOptions;
|
|
18917
19546
|
type ToDataURLOptions = Electron.ToDataURLOptions;
|
|
@@ -18954,8 +19583,8 @@ declare namespace Electron {
|
|
|
18954
19583
|
type PageRanges = Electron.PageRanges;
|
|
18955
19584
|
type Params = Electron.Params;
|
|
18956
19585
|
type Video = Electron.Video;
|
|
18957
|
-
type BluetoothDevice = Electron.BluetoothDevice;
|
|
18958
19586
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
19587
|
+
type BluetoothDevice = Electron.BluetoothDevice;
|
|
18959
19588
|
type Certificate = Electron.Certificate;
|
|
18960
19589
|
type CertificatePrincipal = Electron.CertificatePrincipal;
|
|
18961
19590
|
type Cookie = Electron.Cookie;
|
|
@@ -19240,7 +19869,6 @@ declare namespace Electron {
|
|
|
19240
19869
|
type Streams = Electron.Streams;
|
|
19241
19870
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
19242
19871
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
19243
|
-
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
19244
19872
|
type TitleOptions = Electron.TitleOptions;
|
|
19245
19873
|
type ToBitmapOptions = Electron.ToBitmapOptions;
|
|
19246
19874
|
type ToDataURLOptions = Electron.ToDataURLOptions;
|
|
@@ -19283,8 +19911,8 @@ declare namespace Electron {
|
|
|
19283
19911
|
type PageRanges = Electron.PageRanges;
|
|
19284
19912
|
type Params = Electron.Params;
|
|
19285
19913
|
type Video = Electron.Video;
|
|
19286
|
-
type BluetoothDevice = Electron.BluetoothDevice;
|
|
19287
19914
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
19915
|
+
type BluetoothDevice = Electron.BluetoothDevice;
|
|
19288
19916
|
type Certificate = Electron.Certificate;
|
|
19289
19917
|
type CertificatePrincipal = Electron.CertificatePrincipal;
|
|
19290
19918
|
type Cookie = Electron.Cookie;
|
|
@@ -19363,6 +19991,8 @@ declare namespace Electron {
|
|
|
19363
19991
|
type IpcRenderer = Electron.IpcRenderer;
|
|
19364
19992
|
const webFrame: WebFrame;
|
|
19365
19993
|
type WebFrame = Electron.WebFrame;
|
|
19994
|
+
const webUtils: WebUtils;
|
|
19995
|
+
type WebUtils = Electron.WebUtils;
|
|
19366
19996
|
type WebviewTag = Electron.WebviewTag;
|
|
19367
19997
|
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
19368
19998
|
type AddRepresentationOptions = Electron.AddRepresentationOptions;
|
|
@@ -19503,7 +20133,6 @@ declare namespace Electron {
|
|
|
19503
20133
|
type Streams = Electron.Streams;
|
|
19504
20134
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
19505
20135
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
19506
|
-
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
19507
20136
|
type TitleOptions = Electron.TitleOptions;
|
|
19508
20137
|
type ToBitmapOptions = Electron.ToBitmapOptions;
|
|
19509
20138
|
type ToDataURLOptions = Electron.ToDataURLOptions;
|
|
@@ -19546,8 +20175,263 @@ declare namespace Electron {
|
|
|
19546
20175
|
type PageRanges = Electron.PageRanges;
|
|
19547
20176
|
type Params = Electron.Params;
|
|
19548
20177
|
type Video = Electron.Video;
|
|
20178
|
+
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
19549
20179
|
type BluetoothDevice = Electron.BluetoothDevice;
|
|
20180
|
+
type Certificate = Electron.Certificate;
|
|
20181
|
+
type CertificatePrincipal = Electron.CertificatePrincipal;
|
|
20182
|
+
type Cookie = Electron.Cookie;
|
|
20183
|
+
type CPUUsage = Electron.CPUUsage;
|
|
20184
|
+
type CrashReport = Electron.CrashReport;
|
|
20185
|
+
type CustomScheme = Electron.CustomScheme;
|
|
20186
|
+
type DesktopCapturerSource = Electron.DesktopCapturerSource;
|
|
20187
|
+
type Display = Electron.Display;
|
|
20188
|
+
type Extension = Electron.Extension;
|
|
20189
|
+
type ExtensionInfo = Electron.ExtensionInfo;
|
|
20190
|
+
type FileFilter = Electron.FileFilter;
|
|
20191
|
+
type FilePathWithHeaders = Electron.FilePathWithHeaders;
|
|
20192
|
+
type GPUFeatureStatus = Electron.GPUFeatureStatus;
|
|
20193
|
+
type HIDDevice = Electron.HIDDevice;
|
|
20194
|
+
type InputEvent = Electron.InputEvent;
|
|
20195
|
+
type IOCounters = Electron.IOCounters;
|
|
20196
|
+
type IpcMainEvent = Electron.IpcMainEvent;
|
|
20197
|
+
type IpcMainInvokeEvent = Electron.IpcMainInvokeEvent;
|
|
20198
|
+
type IpcRendererEvent = Electron.IpcRendererEvent;
|
|
20199
|
+
type JumpListCategory = Electron.JumpListCategory;
|
|
20200
|
+
type JumpListItem = Electron.JumpListItem;
|
|
20201
|
+
type KeyboardEvent = Electron.KeyboardEvent;
|
|
20202
|
+
type KeyboardInputEvent = Electron.KeyboardInputEvent;
|
|
20203
|
+
type MemoryInfo = Electron.MemoryInfo;
|
|
20204
|
+
type MemoryUsageDetails = Electron.MemoryUsageDetails;
|
|
20205
|
+
type MimeTypedBuffer = Electron.MimeTypedBuffer;
|
|
20206
|
+
type MouseInputEvent = Electron.MouseInputEvent;
|
|
20207
|
+
type MouseWheelInputEvent = Electron.MouseWheelInputEvent;
|
|
20208
|
+
type NotificationAction = Electron.NotificationAction;
|
|
20209
|
+
type NotificationResponse = Electron.NotificationResponse;
|
|
20210
|
+
type PaymentDiscount = Electron.PaymentDiscount;
|
|
20211
|
+
type Point = Electron.Point;
|
|
20212
|
+
type PostBody = Electron.PostBody;
|
|
20213
|
+
type PrinterInfo = Electron.PrinterInfo;
|
|
20214
|
+
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
20215
|
+
type ProcessMetric = Electron.ProcessMetric;
|
|
20216
|
+
type Product = Electron.Product;
|
|
20217
|
+
type ProductDiscount = Electron.ProductDiscount;
|
|
20218
|
+
type ProductSubscriptionPeriod = Electron.ProductSubscriptionPeriod;
|
|
20219
|
+
type ProtocolRequest = Electron.ProtocolRequest;
|
|
20220
|
+
type ProtocolResponse = Electron.ProtocolResponse;
|
|
20221
|
+
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
20222
|
+
type Rectangle = Electron.Rectangle;
|
|
20223
|
+
type Referrer = Electron.Referrer;
|
|
20224
|
+
type RenderProcessGoneDetails = Electron.RenderProcessGoneDetails;
|
|
20225
|
+
type ResolvedEndpoint = Electron.ResolvedEndpoint;
|
|
20226
|
+
type ResolvedHost = Electron.ResolvedHost;
|
|
20227
|
+
type ScrubberItem = Electron.ScrubberItem;
|
|
20228
|
+
type SegmentedControlSegment = Electron.SegmentedControlSegment;
|
|
20229
|
+
type SerialPort = Electron.SerialPort;
|
|
20230
|
+
type ServiceWorkerInfo = Electron.ServiceWorkerInfo;
|
|
20231
|
+
type SharedWorkerInfo = Electron.SharedWorkerInfo;
|
|
20232
|
+
type SharingItem = Electron.SharingItem;
|
|
20233
|
+
type ShortcutDetails = Electron.ShortcutDetails;
|
|
20234
|
+
type Size = Electron.Size;
|
|
20235
|
+
type Task = Electron.Task;
|
|
20236
|
+
type ThumbarButton = Electron.ThumbarButton;
|
|
20237
|
+
type TraceCategoriesAndOptions = Electron.TraceCategoriesAndOptions;
|
|
20238
|
+
type TraceConfig = Electron.TraceConfig;
|
|
20239
|
+
type Transaction = Electron.Transaction;
|
|
20240
|
+
type UploadData = Electron.UploadData;
|
|
20241
|
+
type UploadFile = Electron.UploadFile;
|
|
20242
|
+
type UploadRawData = Electron.UploadRawData;
|
|
20243
|
+
type USBDevice = Electron.USBDevice;
|
|
20244
|
+
type UserDefaultTypes = Electron.UserDefaultTypes;
|
|
20245
|
+
type WebPreferences = Electron.WebPreferences;
|
|
20246
|
+
type WebRequestFilter = Electron.WebRequestFilter;
|
|
20247
|
+
type WebSource = Electron.WebSource;
|
|
20248
|
+
}
|
|
20249
|
+
|
|
20250
|
+
namespace Utility {
|
|
20251
|
+
type Event<Params extends object = {}> = Electron.Event<Params>;
|
|
20252
|
+
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
20253
|
+
type AddRepresentationOptions = Electron.AddRepresentationOptions;
|
|
20254
|
+
type AdjustSelectionOptions = Electron.AdjustSelectionOptions;
|
|
20255
|
+
type AnimationSettings = Electron.AnimationSettings;
|
|
20256
|
+
type AppDetailsOptions = Electron.AppDetailsOptions;
|
|
20257
|
+
type ApplicationInfoForProtocolReturnValue = Electron.ApplicationInfoForProtocolReturnValue;
|
|
20258
|
+
type AuthenticationResponseDetails = Electron.AuthenticationResponseDetails;
|
|
20259
|
+
type AuthInfo = Electron.AuthInfo;
|
|
20260
|
+
type AutoResizeOptions = Electron.AutoResizeOptions;
|
|
20261
|
+
type BeforeSendResponse = Electron.BeforeSendResponse;
|
|
20262
|
+
type BitmapOptions = Electron.BitmapOptions;
|
|
20263
|
+
type BlinkMemoryInfo = Electron.BlinkMemoryInfo;
|
|
20264
|
+
type BluetoothPairingHandlerHandlerDetails = Electron.BluetoothPairingHandlerHandlerDetails;
|
|
20265
|
+
type BrowserViewConstructorOptions = Electron.BrowserViewConstructorOptions;
|
|
20266
|
+
type CallbackResponse = Electron.CallbackResponse;
|
|
20267
|
+
type CertificateTrustDialogOptions = Electron.CertificateTrustDialogOptions;
|
|
20268
|
+
type ClearCodeCachesOptions = Electron.ClearCodeCachesOptions;
|
|
20269
|
+
type ClearStorageDataOptions = Electron.ClearStorageDataOptions;
|
|
20270
|
+
type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
|
|
20271
|
+
type CloseOpts = Electron.CloseOpts;
|
|
20272
|
+
type Config = Electron.Config;
|
|
20273
|
+
type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
|
|
20274
|
+
type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
|
|
20275
|
+
type ContextMenuEvent = Electron.ContextMenuEvent;
|
|
20276
|
+
type ContextMenuParams = Electron.ContextMenuParams;
|
|
20277
|
+
type ContinueActivityDetails = Electron.ContinueActivityDetails;
|
|
20278
|
+
type CookiesGetFilter = Electron.CookiesGetFilter;
|
|
20279
|
+
type CookiesSetDetails = Electron.CookiesSetDetails;
|
|
20280
|
+
type CrashReporterStartOptions = Electron.CrashReporterStartOptions;
|
|
20281
|
+
type CreateFromBitmapOptions = Electron.CreateFromBitmapOptions;
|
|
20282
|
+
type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
|
|
20283
|
+
type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
|
|
20284
|
+
type Data = Electron.Data;
|
|
20285
|
+
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
20286
|
+
type Details = Electron.Details;
|
|
20287
|
+
type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
|
|
20288
|
+
type DevtoolsOpenUrlEvent = Electron.DevtoolsOpenUrlEvent;
|
|
20289
|
+
type DidChangeThemeColorEvent = Electron.DidChangeThemeColorEvent;
|
|
20290
|
+
type DidCreateWindowDetails = Electron.DidCreateWindowDetails;
|
|
20291
|
+
type DidFailLoadEvent = Electron.DidFailLoadEvent;
|
|
20292
|
+
type DidFrameFinishLoadEvent = Electron.DidFrameFinishLoadEvent;
|
|
20293
|
+
type DidFrameNavigateEvent = Electron.DidFrameNavigateEvent;
|
|
20294
|
+
type DidNavigateEvent = Electron.DidNavigateEvent;
|
|
20295
|
+
type DidNavigateInPageEvent = Electron.DidNavigateInPageEvent;
|
|
20296
|
+
type DidRedirectNavigationEvent = Electron.DidRedirectNavigationEvent;
|
|
20297
|
+
type DidStartNavigationEvent = Electron.DidStartNavigationEvent;
|
|
20298
|
+
type DisplayBalloonOptions = Electron.DisplayBalloonOptions;
|
|
20299
|
+
type DisplayMediaRequestHandlerHandlerRequest = Electron.DisplayMediaRequestHandlerHandlerRequest;
|
|
20300
|
+
type DownloadURLOptions = Electron.DownloadURLOptions;
|
|
20301
|
+
type EnableNetworkEmulationOptions = Electron.EnableNetworkEmulationOptions;
|
|
20302
|
+
type FeedURLOptions = Electron.FeedURLOptions;
|
|
20303
|
+
type FileIconOptions = Electron.FileIconOptions;
|
|
20304
|
+
type FindInPageOptions = Electron.FindInPageOptions;
|
|
20305
|
+
type FocusOptions = Electron.FocusOptions;
|
|
20306
|
+
type ForkOptions = Electron.ForkOptions;
|
|
20307
|
+
type FoundInPageEvent = Electron.FoundInPageEvent;
|
|
20308
|
+
type FrameCreatedDetails = Electron.FrameCreatedDetails;
|
|
20309
|
+
type FromPartitionOptions = Electron.FromPartitionOptions;
|
|
20310
|
+
type FromPathOptions = Electron.FromPathOptions;
|
|
20311
|
+
type HandlerDetails = Electron.HandlerDetails;
|
|
20312
|
+
type HeadersReceivedResponse = Electron.HeadersReceivedResponse;
|
|
20313
|
+
type HeapStatistics = Electron.HeapStatistics;
|
|
20314
|
+
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
20315
|
+
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
20316
|
+
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
20317
|
+
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
20318
|
+
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
20319
|
+
type Info = Electron.Info;
|
|
20320
|
+
type Input = Electron.Input;
|
|
20321
|
+
type InsertCSSOptions = Electron.InsertCSSOptions;
|
|
20322
|
+
type IpcMessageEvent = Electron.IpcMessageEvent;
|
|
20323
|
+
type Item = Electron.Item;
|
|
20324
|
+
type JumpListSettings = Electron.JumpListSettings;
|
|
20325
|
+
type LoadCommitEvent = Electron.LoadCommitEvent;
|
|
20326
|
+
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
20327
|
+
type LoadFileOptions = Electron.LoadFileOptions;
|
|
20328
|
+
type LoadURLOptions = Electron.LoadURLOptions;
|
|
20329
|
+
type LoginItemSettings = Electron.LoginItemSettings;
|
|
20330
|
+
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
20331
|
+
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
20332
|
+
type MessageBoxOptions = Electron.MessageBoxOptions;
|
|
20333
|
+
type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
|
|
20334
|
+
type MessageBoxSyncOptions = Electron.MessageBoxSyncOptions;
|
|
20335
|
+
type MessageDetails = Electron.MessageDetails;
|
|
20336
|
+
type MessageEvent = Electron.MessageEvent;
|
|
20337
|
+
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
20338
|
+
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
20339
|
+
type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
|
|
20340
|
+
type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
|
|
20341
|
+
type OnBeforeSendHeadersListenerDetails = Electron.OnBeforeSendHeadersListenerDetails;
|
|
20342
|
+
type OnCompletedListenerDetails = Electron.OnCompletedListenerDetails;
|
|
20343
|
+
type OnErrorOccurredListenerDetails = Electron.OnErrorOccurredListenerDetails;
|
|
20344
|
+
type OnHeadersReceivedListenerDetails = Electron.OnHeadersReceivedListenerDetails;
|
|
20345
|
+
type OnResponseStartedListenerDetails = Electron.OnResponseStartedListenerDetails;
|
|
20346
|
+
type OnSendHeadersListenerDetails = Electron.OnSendHeadersListenerDetails;
|
|
20347
|
+
type OpenDevToolsOptions = Electron.OpenDevToolsOptions;
|
|
20348
|
+
type OpenDialogOptions = Electron.OpenDialogOptions;
|
|
20349
|
+
type OpenDialogReturnValue = Electron.OpenDialogReturnValue;
|
|
20350
|
+
type OpenDialogSyncOptions = Electron.OpenDialogSyncOptions;
|
|
20351
|
+
type OpenExternalOptions = Electron.OpenExternalOptions;
|
|
20352
|
+
type Options = Electron.Options;
|
|
20353
|
+
type Opts = Electron.Opts;
|
|
20354
|
+
type PageFaviconUpdatedEvent = Electron.PageFaviconUpdatedEvent;
|
|
20355
|
+
type PageTitleUpdatedEvent = Electron.PageTitleUpdatedEvent;
|
|
20356
|
+
type Parameters = Electron.Parameters;
|
|
20357
|
+
type Payment = Electron.Payment;
|
|
20358
|
+
type PermissionCheckHandlerHandlerDetails = Electron.PermissionCheckHandlerHandlerDetails;
|
|
20359
|
+
type PermissionRequestHandlerHandlerDetails = Electron.PermissionRequestHandlerHandlerDetails;
|
|
20360
|
+
type PluginCrashedEvent = Electron.PluginCrashedEvent;
|
|
20361
|
+
type PopupOptions = Electron.PopupOptions;
|
|
20362
|
+
type PreconnectOptions = Electron.PreconnectOptions;
|
|
20363
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
20364
|
+
type Privileges = Electron.Privileges;
|
|
20365
|
+
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
20366
|
+
type Provider = Electron.Provider;
|
|
20367
|
+
type PurchaseProductOpts = Electron.PurchaseProductOpts;
|
|
20368
|
+
type ReadBookmark = Electron.ReadBookmark;
|
|
20369
|
+
type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
|
|
20370
|
+
type RelaunchOptions = Electron.RelaunchOptions;
|
|
20371
|
+
type RenderProcessGoneEvent = Electron.RenderProcessGoneEvent;
|
|
20372
|
+
type Request = Electron.Request;
|
|
20373
|
+
type ResizeOptions = Electron.ResizeOptions;
|
|
20374
|
+
type ResolveHostOptions = Electron.ResolveHostOptions;
|
|
20375
|
+
type ResourceUsage = Electron.ResourceUsage;
|
|
20376
|
+
type Response = Electron.Response;
|
|
20377
|
+
type Result = Electron.Result;
|
|
20378
|
+
type SaveDialogOptions = Electron.SaveDialogOptions;
|
|
20379
|
+
type SaveDialogReturnValue = Electron.SaveDialogReturnValue;
|
|
20380
|
+
type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
|
|
20381
|
+
type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
|
|
20382
|
+
type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
|
|
20383
|
+
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
20384
|
+
type Settings = Electron.Settings;
|
|
20385
|
+
type SourcesOptions = Electron.SourcesOptions;
|
|
20386
|
+
type SSLConfigConfig = Electron.SSLConfigConfig;
|
|
20387
|
+
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
20388
|
+
type Streams = Electron.Streams;
|
|
20389
|
+
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
20390
|
+
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
20391
|
+
type TitleOptions = Electron.TitleOptions;
|
|
20392
|
+
type ToBitmapOptions = Electron.ToBitmapOptions;
|
|
20393
|
+
type ToDataURLOptions = Electron.ToDataURLOptions;
|
|
20394
|
+
type ToPNGOptions = Electron.ToPNGOptions;
|
|
20395
|
+
type TouchBarButtonConstructorOptions = Electron.TouchBarButtonConstructorOptions;
|
|
20396
|
+
type TouchBarColorPickerConstructorOptions = Electron.TouchBarColorPickerConstructorOptions;
|
|
20397
|
+
type TouchBarConstructorOptions = Electron.TouchBarConstructorOptions;
|
|
20398
|
+
type TouchBarGroupConstructorOptions = Electron.TouchBarGroupConstructorOptions;
|
|
20399
|
+
type TouchBarLabelConstructorOptions = Electron.TouchBarLabelConstructorOptions;
|
|
20400
|
+
type TouchBarPopoverConstructorOptions = Electron.TouchBarPopoverConstructorOptions;
|
|
20401
|
+
type TouchBarScrubberConstructorOptions = Electron.TouchBarScrubberConstructorOptions;
|
|
20402
|
+
type TouchBarSegmentedControlConstructorOptions = Electron.TouchBarSegmentedControlConstructorOptions;
|
|
20403
|
+
type TouchBarSliderConstructorOptions = Electron.TouchBarSliderConstructorOptions;
|
|
20404
|
+
type TouchBarSpacerConstructorOptions = Electron.TouchBarSpacerConstructorOptions;
|
|
20405
|
+
type TraceBufferUsageReturnValue = Electron.TraceBufferUsageReturnValue;
|
|
20406
|
+
type UdpPortRange = Electron.UdpPortRange;
|
|
20407
|
+
type UpdateTargetUrlEvent = Electron.UpdateTargetUrlEvent;
|
|
20408
|
+
type UploadProgress = Electron.UploadProgress;
|
|
20409
|
+
type UsbDeviceRevokedDetails = Electron.UsbDeviceRevokedDetails;
|
|
20410
|
+
type USBProtectedClassesHandlerHandlerDetails = Electron.USBProtectedClassesHandlerHandlerDetails;
|
|
20411
|
+
type VisibleOnAllWorkspacesOptions = Electron.VisibleOnAllWorkspacesOptions;
|
|
20412
|
+
type WebContentsAudioStateChangedEventParams = Electron.WebContentsAudioStateChangedEventParams;
|
|
20413
|
+
type WebContentsDidRedirectNavigationEventParams = Electron.WebContentsDidRedirectNavigationEventParams;
|
|
20414
|
+
type WebContentsDidStartNavigationEventParams = Electron.WebContentsDidStartNavigationEventParams;
|
|
20415
|
+
type WebContentsPrintOptions = Electron.WebContentsPrintOptions;
|
|
20416
|
+
type WebContentsWillFrameNavigateEventParams = Electron.WebContentsWillFrameNavigateEventParams;
|
|
20417
|
+
type WebContentsWillNavigateEventParams = Electron.WebContentsWillNavigateEventParams;
|
|
20418
|
+
type WebContentsWillRedirectEventParams = Electron.WebContentsWillRedirectEventParams;
|
|
20419
|
+
type WebRTCUDPPortRange = Electron.WebRTCUDPPortRange;
|
|
20420
|
+
type WebviewTagPrintOptions = Electron.WebviewTagPrintOptions;
|
|
20421
|
+
type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
|
|
20422
|
+
type WillNavigateEvent = Electron.WillNavigateEvent;
|
|
20423
|
+
type WillResizeDetails = Electron.WillResizeDetails;
|
|
20424
|
+
type EditFlags = Electron.EditFlags;
|
|
20425
|
+
type Env = Electron.Env;
|
|
20426
|
+
type FoundInPageResult = Electron.FoundInPageResult;
|
|
20427
|
+
type LaunchItems = Electron.LaunchItems;
|
|
20428
|
+
type Margins = Electron.Margins;
|
|
20429
|
+
type MediaFlags = Electron.MediaFlags;
|
|
20430
|
+
type PageRanges = Electron.PageRanges;
|
|
20431
|
+
type Params = Electron.Params;
|
|
20432
|
+
type Video = Electron.Video;
|
|
19550
20433
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
20434
|
+
type BluetoothDevice = Electron.BluetoothDevice;
|
|
19551
20435
|
type Certificate = Electron.Certificate;
|
|
19552
20436
|
type CertificatePrincipal = Electron.CertificatePrincipal;
|
|
19553
20437
|
type Cookie = Electron.Cookie;
|
|
@@ -19707,6 +20591,8 @@ declare namespace Electron {
|
|
|
19707
20591
|
const webFrameMain: typeof WebFrameMain;
|
|
19708
20592
|
type WebFrameMain = Electron.WebFrameMain;
|
|
19709
20593
|
type WebRequest = Electron.WebRequest;
|
|
20594
|
+
const webUtils: WebUtils;
|
|
20595
|
+
type WebUtils = Electron.WebUtils;
|
|
19710
20596
|
type WebviewTag = Electron.WebviewTag;
|
|
19711
20597
|
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
19712
20598
|
type AddRepresentationOptions = Electron.AddRepresentationOptions;
|
|
@@ -19847,7 +20733,6 @@ declare namespace Electron {
|
|
|
19847
20733
|
type Streams = Electron.Streams;
|
|
19848
20734
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
19849
20735
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
19850
|
-
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
19851
20736
|
type TitleOptions = Electron.TitleOptions;
|
|
19852
20737
|
type ToBitmapOptions = Electron.ToBitmapOptions;
|
|
19853
20738
|
type ToDataURLOptions = Electron.ToDataURLOptions;
|
|
@@ -19890,8 +20775,8 @@ declare namespace Electron {
|
|
|
19890
20775
|
type PageRanges = Electron.PageRanges;
|
|
19891
20776
|
type Params = Electron.Params;
|
|
19892
20777
|
type Video = Electron.Video;
|
|
19893
|
-
type BluetoothDevice = Electron.BluetoothDevice;
|
|
19894
20778
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
20779
|
+
type BluetoothDevice = Electron.BluetoothDevice;
|
|
19895
20780
|
type Certificate = Electron.Certificate;
|
|
19896
20781
|
type CertificatePrincipal = Electron.CertificatePrincipal;
|
|
19897
20782
|
type Cookie = Electron.Cookie;
|
|
@@ -19992,6 +20877,8 @@ declare namespace Electron {
|
|
|
19992
20877
|
const webContents: typeof WebContents;
|
|
19993
20878
|
const webFrame: WebFrame;
|
|
19994
20879
|
const webFrameMain: typeof WebFrameMain;
|
|
20880
|
+
const webUtils: WebUtils;
|
|
20881
|
+
const Utility: {};
|
|
19995
20882
|
|
|
19996
20883
|
}
|
|
19997
20884
|
|
|
@@ -20011,11 +20898,16 @@ declare module 'electron/renderer' {
|
|
|
20011
20898
|
export = Electron.Renderer;
|
|
20012
20899
|
}
|
|
20013
20900
|
|
|
20901
|
+
declare module 'electron/utility' {
|
|
20902
|
+
export = Electron.Utility;
|
|
20903
|
+
}
|
|
20904
|
+
|
|
20014
20905
|
interface NodeRequireFunction {
|
|
20015
20906
|
(moduleName: 'electron'): typeof Electron.CrossProcessExports;
|
|
20016
20907
|
(moduleName: 'electron/main'): typeof Electron.Main;
|
|
20017
20908
|
(moduleName: 'electron/common'): typeof Electron.Common;
|
|
20018
20909
|
(moduleName: 'electron/renderer'): typeof Electron.Renderer;
|
|
20910
|
+
(moduleName: 'electron/utility'): typeof Electron.Utility;
|
|
20019
20911
|
}
|
|
20020
20912
|
|
|
20021
20913
|
interface NodeRequire {
|
|
@@ -20023,6 +20915,7 @@ interface NodeRequire {
|
|
|
20023
20915
|
(moduleName: 'electron/main'): typeof Electron.Main;
|
|
20024
20916
|
(moduleName: 'electron/common'): typeof Electron.Common;
|
|
20025
20917
|
(moduleName: 'electron/renderer'): typeof Electron.Renderer;
|
|
20918
|
+
(moduleName: 'electron/utility'): typeof Electron.Utility;
|
|
20026
20919
|
}
|
|
20027
20920
|
|
|
20028
20921
|
interface File {
|