mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Fix event generation issues.
This commit is contained in:
parent
2c99f9e43c
commit
ae4ed4fe31
21 changed files with 1069 additions and 669 deletions
400
docs/src/content/docs/guides/events-reference.mdx
Normal file
400
docs/src/content/docs/guides/events-reference.mdx
Normal file
|
|
@ -0,0 +1,400 @@
|
||||||
|
---
|
||||||
|
title: Events Guide
|
||||||
|
description: A practical guide to using events in Wails v3 for application communication and lifecycle management
|
||||||
|
---
|
||||||
|
|
||||||
|
**NOTE: This guide is a work in progress**
|
||||||
|
|
||||||
|
# Events Guide
|
||||||
|
|
||||||
|
Events are the heartbeat of communication in Wails applications. They allow different parts of your application to talk to each other without being tightly coupled. This guide will walk you through everything you need to know about using events effectively in your Wails application.
|
||||||
|
|
||||||
|
## Understanding Wails Events
|
||||||
|
|
||||||
|
Think of events as messages that get broadcast throughout your application. Any part of your application can listen for these messages and react accordingly. This is particularly useful for:
|
||||||
|
|
||||||
|
- **Responding to window changes**: Know when your window is minimized, maximized, or moved
|
||||||
|
- **Handling system events**: React to theme changes or power events
|
||||||
|
- **Custom application logic**: Create your own events for features like data updates or user actions
|
||||||
|
- **Cross-component communication**: Let different parts of your app communicate without direct dependencies
|
||||||
|
|
||||||
|
## Event Naming Convention
|
||||||
|
|
||||||
|
All Wails events follow a namespace pattern to clearly indicate their origin:
|
||||||
|
|
||||||
|
- `common:` - Cross-platform events that work on Windows, macOS, and Linux
|
||||||
|
- `windows:` - Windows-specific events
|
||||||
|
- `mac:` - macOS-specific events
|
||||||
|
- `linux:` - Linux-specific events
|
||||||
|
|
||||||
|
For example:
|
||||||
|
- `common:WindowFocus` - Window gained focus (works everywhere)
|
||||||
|
- `windows:APMSuspend` - System is suspending (Windows only)
|
||||||
|
- `mac:ApplicationDidBecomeActive` - App became active (macOS only)
|
||||||
|
|
||||||
|
## Getting Started with Events
|
||||||
|
|
||||||
|
### Listening to Events (Frontend)
|
||||||
|
|
||||||
|
The most common use case is listening for events in your frontend code:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import { Events } from '@wailsio/runtime';
|
||||||
|
|
||||||
|
// Listen for when the window gains focus
|
||||||
|
Events.On('common:WindowFocus', () => {
|
||||||
|
console.log('Window is now focused!');
|
||||||
|
// Maybe refresh some data or resume animations
|
||||||
|
});
|
||||||
|
|
||||||
|
// Listen for theme changes
|
||||||
|
Events.On('common:ThemeChanged', (event) => {
|
||||||
|
console.log('Theme changed:', event.data);
|
||||||
|
// Update your app's theme accordingly
|
||||||
|
});
|
||||||
|
|
||||||
|
// Listen for custom events from your Go backend
|
||||||
|
Events.On('my-app:data-updated', (event) => {
|
||||||
|
console.log('Data updated:', event.data);
|
||||||
|
// Update your UI with the new data
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### Emitting Events (Backend)
|
||||||
|
|
||||||
|
From your Go code, you can emit events that your frontend can listen to:
|
||||||
|
|
||||||
|
```go
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/wailsapp/wails/v3/pkg/events"
|
||||||
|
"github.com/wailsapp/wails/v3/pkg/application"
|
||||||
|
)
|
||||||
|
|
||||||
|
func (a *App) UpdateData() {
|
||||||
|
// Do some data processing...
|
||||||
|
|
||||||
|
// Notify the frontend
|
||||||
|
a.app.EmitEvent("my-app:data-updated", map[string]interface{}{
|
||||||
|
"timestamp": time.Now(),
|
||||||
|
"count": 42,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Removing Event Listeners
|
||||||
|
|
||||||
|
Always clean up your event listeners when they're no longer needed:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
// Store the handler reference
|
||||||
|
const focusHandler = () => {
|
||||||
|
console.log('Window focused');
|
||||||
|
};
|
||||||
|
|
||||||
|
// Add the listener
|
||||||
|
Events.On('common:WindowFocus', focusHandler);
|
||||||
|
|
||||||
|
// Later, remove it when no longer needed
|
||||||
|
Events.Off('common:WindowFocus', focusHandler);
|
||||||
|
|
||||||
|
// Or remove all listeners for an event
|
||||||
|
Events.Off('common:WindowFocus');
|
||||||
|
```
|
||||||
|
|
||||||
|
## Common Use Cases
|
||||||
|
|
||||||
|
### 1. Pause/Resume on Window Focus
|
||||||
|
|
||||||
|
Many applications need to pause certain activities when the window loses focus:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
let animationRunning = true;
|
||||||
|
|
||||||
|
Events.On('common:WindowLostFocus', () => {
|
||||||
|
animationRunning = false;
|
||||||
|
pauseBackgroundTasks();
|
||||||
|
});
|
||||||
|
|
||||||
|
Events.On('common:WindowFocus', () => {
|
||||||
|
animationRunning = true;
|
||||||
|
resumeBackgroundTasks();
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. Responding to Theme Changes
|
||||||
|
|
||||||
|
Keep your app in sync with the system theme:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
Events.On('common:ThemeChanged', (event) => {
|
||||||
|
const isDarkMode = event.data.isDark;
|
||||||
|
|
||||||
|
if (isDarkMode) {
|
||||||
|
document.body.classList.add('dark-theme');
|
||||||
|
document.body.classList.remove('light-theme');
|
||||||
|
} else {
|
||||||
|
document.body.classList.add('light-theme');
|
||||||
|
document.body.classList.remove('dark-theme');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. Handling File Drops
|
||||||
|
|
||||||
|
Make your app accept dragged files:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
Events.On('common:WindowFilesDropped', (event) => {
|
||||||
|
const files = event.data.files;
|
||||||
|
|
||||||
|
files.forEach(file => {
|
||||||
|
console.log('File dropped:', file);
|
||||||
|
// Process the dropped files
|
||||||
|
handleFileUpload(file);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4. Window Lifecycle Management
|
||||||
|
|
||||||
|
Respond to window state changes:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
Events.On('common:WindowClosing', () => {
|
||||||
|
// Save user data before closing
|
||||||
|
saveApplicationState();
|
||||||
|
|
||||||
|
// You could also prevent closing by returning false
|
||||||
|
// from a registered window close handler
|
||||||
|
});
|
||||||
|
|
||||||
|
Events.On('common:WindowMaximise', () => {
|
||||||
|
// Adjust UI for maximized view
|
||||||
|
adjustLayoutForMaximized();
|
||||||
|
});
|
||||||
|
|
||||||
|
Events.On('common:WindowRestore', () => {
|
||||||
|
// Return UI to normal state
|
||||||
|
adjustLayoutForNormal();
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### 5. Platform-Specific Features
|
||||||
|
|
||||||
|
Handle platform-specific events when needed:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
// Windows-specific power management
|
||||||
|
Events.On('windows:APMSuspend', () => {
|
||||||
|
console.log('System is going to sleep');
|
||||||
|
saveState();
|
||||||
|
});
|
||||||
|
|
||||||
|
Events.On('windows:APMResumeSuspend', () => {
|
||||||
|
console.log('System woke up');
|
||||||
|
refreshData();
|
||||||
|
});
|
||||||
|
|
||||||
|
// macOS-specific app lifecycle
|
||||||
|
Events.On('mac:ApplicationWillTerminate', () => {
|
||||||
|
console.log('App is about to quit');
|
||||||
|
performCleanup();
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
## Creating Custom Events
|
||||||
|
|
||||||
|
You can create your own events for application-specific needs:
|
||||||
|
|
||||||
|
### Backend (Go)
|
||||||
|
|
||||||
|
```go
|
||||||
|
// Emit a custom event when data changes
|
||||||
|
func (a *App) ProcessUserData(userData UserData) error {
|
||||||
|
// Process the data...
|
||||||
|
|
||||||
|
// Notify all listeners
|
||||||
|
a.app.EmitEvent("user:data-processed", map[string]interface{}{
|
||||||
|
"userId": userData.ID,
|
||||||
|
"status": "completed",
|
||||||
|
"timestamp": time.Now(),
|
||||||
|
})
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Emit periodic updates
|
||||||
|
func (a *App) StartMonitoring() {
|
||||||
|
ticker := time.NewTicker(5 * time.Second)
|
||||||
|
go func() {
|
||||||
|
for range ticker.C {
|
||||||
|
stats := a.collectStats()
|
||||||
|
a.app.EmitEvent("monitor:stats-updated", stats)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Frontend (JavaScript)
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
// Listen for your custom events
|
||||||
|
Events.On('user:data-processed', (event) => {
|
||||||
|
const { userId, status, timestamp } = event.data;
|
||||||
|
|
||||||
|
showNotification(`User ${userId} processing ${status}`);
|
||||||
|
updateUIWithNewData();
|
||||||
|
});
|
||||||
|
|
||||||
|
Events.On('monitor:stats-updated', (event) => {
|
||||||
|
updateDashboard(event.data);
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
## Event Reference
|
||||||
|
|
||||||
|
### Common Events (Cross-platform)
|
||||||
|
|
||||||
|
These events work on all platforms:
|
||||||
|
|
||||||
|
| Event | Description | When to Use |
|
||||||
|
|-------|-------------|-------------|
|
||||||
|
| `common:ApplicationStarted` | Application has fully started | Initialize your app, load saved state |
|
||||||
|
| `common:WindowRuntimeReady` | Wails runtime is ready | Start making Wails API calls |
|
||||||
|
| `common:ThemeChanged` | System theme changed | Update app appearance |
|
||||||
|
| `common:WindowFocus` | Window gained focus | Resume activities, refresh data |
|
||||||
|
| `common:WindowLostFocus` | Window lost focus | Pause activities, save state |
|
||||||
|
| `common:WindowMinimise` | Window was minimized | Pause rendering, reduce resource usage |
|
||||||
|
| `common:WindowMaximise` | Window was maximized | Adjust layout for full screen |
|
||||||
|
| `common:WindowRestore` | Window restored from min/max | Return to normal layout |
|
||||||
|
| `common:WindowClosing` | Window is about to close | Save data, cleanup resources |
|
||||||
|
| `common:WindowFilesDropped` | Files dropped on window | Handle file imports |
|
||||||
|
| `common:WindowDidResize` | Window was resized | Adjust layout, rerender charts |
|
||||||
|
| `common:WindowDidMove` | Window was moved | Update position-dependent features |
|
||||||
|
|
||||||
|
### Platform-Specific Events
|
||||||
|
|
||||||
|
#### Windows Events
|
||||||
|
|
||||||
|
Key events for Windows applications:
|
||||||
|
|
||||||
|
| Event | Description | Use Case |
|
||||||
|
|-------|-------------|----------|
|
||||||
|
| `windows:SystemThemeChanged` | Windows theme changed | Update app colors |
|
||||||
|
| `windows:APMSuspend` | System suspending | Save state, pause operations |
|
||||||
|
| `windows:APMResumeSuspend` | System resumed | Restore state, refresh data |
|
||||||
|
| `windows:APMPowerStatusChange` | Power status changed | Adjust performance settings |
|
||||||
|
|
||||||
|
#### macOS Events
|
||||||
|
|
||||||
|
Important macOS application events:
|
||||||
|
|
||||||
|
| Event | Description | Use Case |
|
||||||
|
|-------|-------------|----------|
|
||||||
|
| `mac:ApplicationDidBecomeActive` | App became active | Resume operations |
|
||||||
|
| `mac:ApplicationDidResignActive` | App became inactive | Pause operations |
|
||||||
|
| `mac:ApplicationWillTerminate` | App will quit | Final cleanup |
|
||||||
|
| `mac:WindowDidEnterFullScreen` | Entered fullscreen | Adjust UI for fullscreen |
|
||||||
|
| `mac:WindowDidExitFullScreen` | Exited fullscreen | Restore normal UI |
|
||||||
|
|
||||||
|
#### Linux Events
|
||||||
|
|
||||||
|
Core Linux window events:
|
||||||
|
|
||||||
|
| Event | Description | Use Case |
|
||||||
|
|-------|-------------|----------|
|
||||||
|
| `linux:SystemThemeChanged` | Desktop theme changed | Update app theme |
|
||||||
|
| `linux:WindowFocusIn` | Window gained focus | Resume activities |
|
||||||
|
| `linux:WindowFocusOut` | Window lost focus | Pause activities |
|
||||||
|
|
||||||
|
## Best Practices
|
||||||
|
|
||||||
|
### 1. Use Event Namespaces
|
||||||
|
|
||||||
|
When creating custom events, use namespaces to avoid conflicts:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
// Good - namespaced events
|
||||||
|
Events.Emit('myapp:user:login');
|
||||||
|
Events.Emit('myapp:data:updated');
|
||||||
|
Events.Emit('myapp:network:connected');
|
||||||
|
|
||||||
|
// Avoid - generic names that might conflict
|
||||||
|
Events.Emit('login');
|
||||||
|
Events.Emit('update');
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. Clean Up Listeners
|
||||||
|
|
||||||
|
Always remove event listeners when components unmount:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
// React example
|
||||||
|
useEffect(() => {
|
||||||
|
const handler = (event) => {
|
||||||
|
// Handle event
|
||||||
|
};
|
||||||
|
|
||||||
|
Events.On('common:WindowResize', handler);
|
||||||
|
|
||||||
|
// Cleanup
|
||||||
|
return () => {
|
||||||
|
Events.Off('common:WindowResize', handler);
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. Handle Platform Differences
|
||||||
|
|
||||||
|
Check platform availability when using platform-specific events:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import { Platform } from '@wailsio/runtime';
|
||||||
|
|
||||||
|
if (Platform.isWindows) {
|
||||||
|
Events.On('windows:APMSuspend', handleSuspend);
|
||||||
|
} else if (Platform.isMac) {
|
||||||
|
Events.On('mac:ApplicationWillTerminate', handleTerminate);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4. Don't Overuse Events
|
||||||
|
|
||||||
|
While events are powerful, don't use them for everything:
|
||||||
|
|
||||||
|
- ✅ Use events for: System notifications, lifecycle changes, broadcast updates
|
||||||
|
- ❌ Avoid events for: Direct function returns, single component updates, synchronous operations
|
||||||
|
|
||||||
|
## Debugging Events
|
||||||
|
|
||||||
|
To debug event issues:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
// Log all events (development only)
|
||||||
|
if (isDevelopment) {
|
||||||
|
const originalOn = Events.On;
|
||||||
|
Events.On = function(eventName, handler) {
|
||||||
|
console.log(`[Event Registered] ${eventName}`);
|
||||||
|
return originalOn.call(this, eventName, function(event) {
|
||||||
|
console.log(`[Event Fired] ${eventName}`, event);
|
||||||
|
return handler(event);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Source of Truth
|
||||||
|
|
||||||
|
The complete list of available events can be found in the Wails source code:
|
||||||
|
- Frontend events: [`v3/internal/runtime/desktop/@wailsio/runtime/src/event_types.ts`](https://github.com/wailsapp/wails/blob/main/v3/internal/runtime/desktop/@wailsio/runtime/src/event_types.ts)
|
||||||
|
- Backend events: [`v3/pkg/events/events.go`](https://github.com/wailsapp/wails/blob/main/v3/pkg/events/events.go)
|
||||||
|
|
||||||
|
Always refer to these files for the most up-to-date event names and availability.
|
||||||
|
|
||||||
|
## Summary
|
||||||
|
|
||||||
|
Events in Wails provide a powerful, decoupled way to handle communication in your application. By following the patterns and practices in this guide, you can build responsive, platform-aware applications that react smoothly to system changes and user interactions.
|
||||||
|
|
||||||
|
Remember: start with common events for cross-platform compatibility, add platform-specific events when needed, and always clean up your event listeners to prevent memory leaks.
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
||||||
window.hierarchyData = "eJylk09PAjEQxb/LnAvSsv/Ym6jxgsGIF2MIqbuz0tDtmrZ4IfvdTSGSYljThVObNm/m9+a1O9BNYw3k7zGLCKWThNBRPCIZSwgdp9mSgMZKYmFFowzkO4hZ5BbFa4Qc7rgqUEr+IfFZN7UwOBMbBAIboUrIWZwQ2GoJOQhlUVe8QHNzXjRc21oCgUJyYyAHa8qBqzI4Kt3lWshSo3LAUbpsCcRR+i/PkYWy7Jdl3+IsSCfE4aAlkLHE6xduerXfKy5Xw+tNTxj1IJ6wFHzRbHXRA8ITBUC0BNy78Jo+fKOyr1x/og1v6on6Op8wSiilI2ffrR7KwcV0W1Wow1l8VeAE6MRve1uWez8zYSwq1POvwycJJugoEAyT/I3jYpILMU4CctPZh8Mif0ovyEv3wRZWI6+nb/OpO+kTVFeFwDmxOO3EuceKb6W9juikSCDUOM06oR5dCKK4DuqkSO8oWTQibnDLtm1/AIRmEWo="
|
window.hierarchyData = "eJylk19PwjAUxb/LfS5oy+b+vIkaXzAY8cUYQup2Jw1dZ9rOF7LvbgqRFMNMB09t2px7f+eedgu6aayB/D1mMaE0Swi9jilJWULoJMmWBDRWEgsrGmUg30LMYrcoXiPkcMdVgVLyD4nPuqmFwZnYIBDYCFVCzuIbAq2WkINQFnXFCzRXp0Xjta0lECgkNwZysKYcuSqjg9JdroUsNSoHHKXLjkAcpf/yHFgoS39Zdi1OgvRC7A86AilLvH7hple7veJyNb7cdMaYB/GEpeCLptXFAAhPFADREXDvwmv68I3KvnL9iTa8qSca6jxjjFBKqbPvVg9l72LaVhXqcBZfFTgBmvltb8ty52cmjEWFev61/yTBBD0FgmGSv3GcTXImxlFAbjq7cFjkT+kFeek+2MJq5PX0bT51J0OC6qsQOCcWp70491jxVtrLiI6KBEJNkqwX6tGFIIrLoI6KDI6SRZS4wS27rvsB2mARgQ=="
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
in case a <a href="CancellablePromise.html" class="tsd-kind-class">CancellablePromise</a> is cancelled successfully.</p>
|
in case a <a href="CancellablePromise.html" class="tsd-kind-class">CancellablePromise</a> is cancelled successfully.</p>
|
||||||
<p>The value of the <a href="CancelError.html#name" class="tsd-kind-property">name</a> property is the string <code>"CancelError"</code>.
|
<p>The value of the <a href="CancelError.html#name" class="tsd-kind-property">name</a> property is the string <code>"CancelError"</code>.
|
||||||
The value of the <a href="Call.RuntimeError.html#cause" class="tsd-kind-property">cause</a> property is the cause passed to the cancel method, if any.</p>
|
The value of the <a href="Call.RuntimeError.html#cause" class="tsd-kind-property">cause</a> property is the cause passed to the cancel method, if any.</p>
|
||||||
</div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel tsd-hierarchy" data-refl="504"><h4>Hierarchy</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error" class="tsd-signature-type external" target="_blank">Error</a><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">CancelError</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/wailsapp/wails/blob/v3-alpha/v3/internal/runtime/desktop/@wailsio/runtime/src/cancellable.ts#L20">src/cancellable.ts:20</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="CancelError.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
</div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel tsd-hierarchy" data-refl="505"><h4>Hierarchy</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error" class="tsd-signature-type external" target="_blank">Error</a><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">CancelError</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/wailsapp/wails/blob/v3-alpha/v3/internal/runtime/desktop/@wailsio/runtime/src/cancellable.ts#L20">src/cancellable.ts:20</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="CancelError.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
||||||
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="CancelError.html#cause" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>cause?</span></a>
|
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="CancelError.html#cause" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>cause?</span></a>
|
||||||
<a href="CancelError.html#message" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>message</span></a>
|
<a href="CancelError.html#message" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>message</span></a>
|
||||||
<a href="CancelError.html#name" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>name</span></a>
|
<a href="CancelError.html#name" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>name</span></a>
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ This might be reconsidered in case the proposal is retired.</p>
|
||||||
and is compliant with the <a href="https://promisesaplus.com/">Promises/A+ specification</a>
|
and is compliant with the <a href="https://promisesaplus.com/">Promises/A+ specification</a>
|
||||||
(it passes the <a href="https://github.com/promises-aplus/promises-tests">compliance suite</a>)
|
(it passes the <a href="https://github.com/promises-aplus/promises-tests">compliance suite</a>)
|
||||||
if so is the underlying implementation.</p>
|
if so is the underlying implementation.</p>
|
||||||
</div><div class="tsd-comment tsd-typography"></div></section> <section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="t" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">T</span></span></li></ul></section> <section class="tsd-panel tsd-hierarchy" data-refl="547"><h4>Hierarchy</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="CancellablePromise.html#constructorcancellablepromiset">T</a><span class="tsd-signature-symbol">></span><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">CancellablePromise</span></li></ul></li></ul></section><section class="tsd-panel"><h4>Implements</h4><ul class="tsd-hierarchy"><li><a href="../interfaces/_internal_.PromiseLike.html" class="tsd-signature-type tsd-kind-interface">PromiseLike</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="CancellablePromise.html#constructorcancellablepromiset">T</a><span class="tsd-signature-symbol">></span></li><li><a href="../interfaces/CancellablePromiseLike.html" class="tsd-signature-type tsd-kind-interface">CancellablePromiseLike</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="CancellablePromise.html#constructorcancellablepromiset">T</a><span class="tsd-signature-symbol">></span></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/wailsapp/wails/blob/v3-alpha/v3/internal/runtime/desktop/@wailsio/runtime/src/cancellable.ts#L147">src/cancellable.ts:147</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="CancellablePromise.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
</div><div class="tsd-comment tsd-typography"></div></section> <section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="t" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">T</span></span></li></ul></section> <section class="tsd-panel tsd-hierarchy" data-refl="548"><h4>Hierarchy</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="CancellablePromise.html#constructorcancellablepromiset">T</a><span class="tsd-signature-symbol">></span><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">CancellablePromise</span></li></ul></li></ul></section><section class="tsd-panel"><h4>Implements</h4><ul class="tsd-hierarchy"><li><a href="../interfaces/_internal_.PromiseLike.html" class="tsd-signature-type tsd-kind-interface">PromiseLike</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="CancellablePromise.html#constructorcancellablepromiset">T</a><span class="tsd-signature-symbol">></span></li><li><a href="../interfaces/CancellablePromiseLike.html" class="tsd-signature-type tsd-kind-interface">CancellablePromiseLike</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="CancellablePromise.html#constructorcancellablepromiset">T</a><span class="tsd-signature-symbol">></span></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/wailsapp/wails/blob/v3-alpha/v3/internal/runtime/desktop/@wailsio/runtime/src/cancellable.ts#L147">src/cancellable.ts:147</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="CancellablePromise.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
||||||
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="CancellablePromise.html#tostringtag" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>[to<wbr/>String<wbr/>Tag]</span></a>
|
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="CancellablePromise.html#tostringtag" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>[to<wbr/>String<wbr/>Tag]</span></a>
|
||||||
<a href="CancellablePromise.html#species" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>[species]</span></a>
|
<a href="CancellablePromise.html#species" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>[species]</span></a>
|
||||||
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="CancellablePromise.html#cancel" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>cancel</span></a>
|
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="CancellablePromise.html#cancel" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>cancel</span></a>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ The value of the <a href="Call.RuntimeError.html#cause" class="tsd-kind-property
|
||||||
<p>Because the original promise was cancelled,
|
<p>Because the original promise was cancelled,
|
||||||
a wrapper promise will be passed to the unhandled rejection listener instead.
|
a wrapper promise will be passed to the unhandled rejection listener instead.
|
||||||
The <a href="CancelledRejectionError.html#promise" class="tsd-kind-property">promise</a> property holds a reference to the original promise.</p>
|
The <a href="CancelledRejectionError.html#promise" class="tsd-kind-property">promise</a> property holds a reference to the original promise.</p>
|
||||||
</div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel tsd-hierarchy" data-refl="513"><h4>Hierarchy</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error" class="tsd-signature-type external" target="_blank">Error</a><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">CancelledRejectionError</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/wailsapp/wails/blob/v3-alpha/v3/internal/runtime/desktop/@wailsio/runtime/src/cancellable.ts#L44">src/cancellable.ts:44</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="CancelledRejectionError.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
</div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel tsd-hierarchy" data-refl="514"><h4>Hierarchy</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error" class="tsd-signature-type external" target="_blank">Error</a><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">CancelledRejectionError</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/wailsapp/wails/blob/v3-alpha/v3/internal/runtime/desktop/@wailsio/runtime/src/cancellable.ts#L44">src/cancellable.ts:44</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="CancelledRejectionError.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
||||||
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="CancelledRejectionError.html#cause" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>cause?</span></a>
|
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="CancelledRejectionError.html#cause" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>cause?</span></a>
|
||||||
<a href="CancelledRejectionError.html#message" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>message</span></a>
|
<a href="CancelledRejectionError.html#message" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>message</span></a>
|
||||||
<a href="CancelledRejectionError.html#name" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>name</span></a>
|
<a href="CancelledRejectionError.html#name" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>name</span></a>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Emit | @wailsio/runtime</title><meta name="description" content="Documentation for @wailsio/runtime"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@wailsio/runtime</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@wailsio/runtime</a></li><li><a href="../modules/Events.html">Events</a></li><li><a href="Events.Emit.html">Emit</a></li></ul><h1>Function Emit</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="emit" class="tsd-anchor"></a><span class="tsd-kind-call-signature">Emit</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="../classes/Events.WailsEvent.html" class="tsd-signature-type tsd-kind-class">WailsEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#emit" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Emits the given event.</p>
|
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Emit | @wailsio/runtime</title><meta name="description" content="Documentation for @wailsio/runtime"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@wailsio/runtime</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@wailsio/runtime</a></li><li><a href="../modules/Events.html">Events</a></li><li><a href="Events.Emit.html">Emit</a></li></ul><h1>Function Emit</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="emit" class="tsd-anchor"></a><span class="tsd-kind-call-signature">Emit</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">data</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#emit" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Emits an event using the name and data.</p>
|
||||||
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="../classes/Events.WailsEvent.html" class="tsd-signature-type tsd-kind-class">WailsEvent</a></span><div class="tsd-comment tsd-typography"><p>The name of the event to emit.</p>
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>the name of the event to emit.</p>
|
||||||
|
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">data</span>: <span class="tsd-signature-type">any</span></span><div class="tsd-comment tsd-typography"><p>the data to be sent with the event.</p>
|
||||||
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>A promise that will be fulfilled once the event has been emitted.</p>
|
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>A promise that will be fulfilled once the event has been emitted.</p>
|
||||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/wailsapp/wails/blob/v3-alpha/v3/internal/runtime/desktop/@wailsio/runtime/src/events.ts#L133">src/events.ts:133</a></li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@wailsio/runtime</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/wailsapp/wails/blob/v3-alpha/v3/internal/runtime/desktop/@wailsio/runtime/src/events.ts#L134">src/events.ts:134</a></li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@wailsio/runtime</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
||||||
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>EventListenerOptions | @wailsio/runtime</title><meta name="description" content="Documentation for @wailsio/runtime"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@wailsio/runtime</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@wailsio/runtime</a></li><li><a href="../modules/_internal_.html"><internal></a></li><li><a href="_internal_.EventListenerOptions.html">EventListenerOptions</a></li></ul><h1>Interface EventListenerOptions</h1></div><div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">EventListenerOptions</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="_internal_.EventListenerOptions.html#capture">capture</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><section class="tsd-panel tsd-hierarchy" data-refl="1196"><h4>Hierarchy (<a href="../hierarchy.html#<internal>.EventListenerOptions">View Summary</a>)</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">EventListenerOptions</span><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="_internal_.AddEventListenerOptions.html" class="tsd-signature-type tsd-kind-interface">AddEventListenerOptions</a></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in node_modules/typescript/lib/lib.dom.d.ts:598</li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="_internal_.EventListenerOptions.html#capture" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>capture?</span></a>
|
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>EventListenerOptions | @wailsio/runtime</title><meta name="description" content="Documentation for @wailsio/runtime"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@wailsio/runtime</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@wailsio/runtime</a></li><li><a href="../modules/_internal_.html"><internal></a></li><li><a href="_internal_.EventListenerOptions.html">EventListenerOptions</a></li></ul><h1>Interface EventListenerOptions</h1></div><div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">EventListenerOptions</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="_internal_.EventListenerOptions.html#capture">capture</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><section class="tsd-panel tsd-hierarchy" data-refl="1197"><h4>Hierarchy (<a href="../hierarchy.html#<internal>.EventListenerOptions">View Summary</a>)</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">EventListenerOptions</span><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="_internal_.AddEventListenerOptions.html" class="tsd-signature-type tsd-kind-interface">AddEventListenerOptions</a></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in node_modules/typescript/lib/lib.dom.d.ts:598</li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="_internal_.EventListenerOptions.html#capture" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>capture?</span></a>
|
||||||
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Properties</h2></summary><section><section class="tsd-panel tsd-member tsd-is-external"><a id="capture" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>capture</span><a href="#capture" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">capture</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in node_modules/typescript/lib/lib.dom.d.ts:599</li></ul></aside></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#capture" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>capture</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@wailsio/runtime</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Properties</h2></summary><section><section class="tsd-panel tsd-member tsd-is-external"><a id="capture" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>capture</span><a href="#capture" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">capture</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in node_modules/typescript/lib/lib.dom.d.ts:599</li></ul></aside></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#capture" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>capture</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@wailsio/runtime</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ReadableStreamDefaultReader | @wailsio/runtime</title><meta name="description" content="Documentation for @wailsio/runtime"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@wailsio/runtime</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@wailsio/runtime</a></li><li><a href="../modules/_internal_.html"><internal></a></li><li><a href="_internal_.ReadableStreamDefaultReader.html">ReadableStreamDefaultReader</a></li></ul><h1>Interface ReadableStreamDefaultReader<R></h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p><a href="https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader">MDN Reference</a></p>
|
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ReadableStreamDefaultReader | @wailsio/runtime</title><meta name="description" content="Documentation for @wailsio/runtime"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@wailsio/runtime</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@wailsio/runtime</a></li><li><a href="../modules/_internal_.html"><internal></a></li><li><a href="_internal_.ReadableStreamDefaultReader.html">ReadableStreamDefaultReader</a></li></ul><h1>Interface ReadableStreamDefaultReader<R></h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p><a href="https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader">MDN Reference</a></p>
|
||||||
</div><div class="tsd-comment tsd-typography"></div></section><div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">ReadableStreamDefaultReader</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="_internal_.ReadableStreamDefaultReader.html#r">R</a> <span class="tsd-signature-symbol">=</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="_internal_.ReadableStreamDefaultReader.html#closed">closed</a><span class="tsd-signature-symbol">:</span> <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-call-signature" href="_internal_.ReadableStreamDefaultReader.html#cancel-1">cancel</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-call-signature" href="_internal_.ReadableStreamDefaultReader.html#read-1">read</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><a href="../types/_internal_.ReadableStreamReadResult.html" class="tsd-signature-type tsd-kind-type-alias">ReadableStreamReadResult</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="_internal_.ReadableStreamDefaultReader.html#r">R</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-call-signature" href="_internal_.ReadableStreamDefaultReader.html#releaselock-1">releaseLock</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div> <section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="r" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">R</span> = <span class="tsd-signature-type">any</span></span></li></ul></section> <section class="tsd-panel tsd-hierarchy" data-refl="1257"><h4>Hierarchy (<a href="../hierarchy.html#<internal>.ReadableStreamDefaultReader">View Summary</a>)</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="_internal_.ReadableStreamGenericReader.html" class="tsd-signature-type tsd-kind-interface">ReadableStreamGenericReader</a><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">ReadableStreamDefaultReader</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in node_modules/typescript/lib/lib.dom.d.ts:19174</li><li>Defined in node_modules/typescript/lib/lib.dom.d.ts:19181</li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="_internal_.ReadableStreamDefaultReader.html#closed" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>closed</span></a>
|
</div><div class="tsd-comment tsd-typography"></div></section><div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">ReadableStreamDefaultReader</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="_internal_.ReadableStreamDefaultReader.html#r">R</a> <span class="tsd-signature-symbol">=</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="_internal_.ReadableStreamDefaultReader.html#closed">closed</a><span class="tsd-signature-symbol">:</span> <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-call-signature" href="_internal_.ReadableStreamDefaultReader.html#cancel-1">cancel</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-call-signature" href="_internal_.ReadableStreamDefaultReader.html#read-1">read</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol"><</span><a href="../types/_internal_.ReadableStreamReadResult.html" class="tsd-signature-type tsd-kind-type-alias">ReadableStreamReadResult</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="_internal_.ReadableStreamDefaultReader.html#r">R</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-call-signature" href="_internal_.ReadableStreamDefaultReader.html#releaselock-1">releaseLock</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div> <section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="r" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">R</span> = <span class="tsd-signature-type">any</span></span></li></ul></section> <section class="tsd-panel tsd-hierarchy" data-refl="1258"><h4>Hierarchy (<a href="../hierarchy.html#<internal>.ReadableStreamDefaultReader">View Summary</a>)</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="_internal_.ReadableStreamGenericReader.html" class="tsd-signature-type tsd-kind-interface">ReadableStreamGenericReader</a><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">ReadableStreamDefaultReader</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in node_modules/typescript/lib/lib.dom.d.ts:19174</li><li>Defined in node_modules/typescript/lib/lib.dom.d.ts:19181</li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="_internal_.ReadableStreamDefaultReader.html#closed" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>closed</span></a>
|
||||||
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="_internal_.ReadableStreamDefaultReader.html#cancel" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>cancel</span></a>
|
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="_internal_.ReadableStreamDefaultReader.html#cancel" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>cancel</span></a>
|
||||||
<a href="_internal_.ReadableStreamDefaultReader.html#read" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>read</span></a>
|
<a href="_internal_.ReadableStreamDefaultReader.html#read" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>read</span></a>
|
||||||
<a href="_internal_.ReadableStreamDefaultReader.html#releaselock" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>release<wbr/>Lock</span></a>
|
<a href="_internal_.ReadableStreamDefaultReader.html#releaselock" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>release<wbr/>Lock</span></a>
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -10,7 +10,7 @@ The electron alternative for Go
|
||||||
|
|
||||||
import { OpenURL } from "./browser.js";
|
import { OpenURL } from "./browser.js";
|
||||||
import { Question } from "./dialogs.js";
|
import { Question } from "./dialogs.js";
|
||||||
import { Emit, WailsEvent } from "./events.js";
|
import { Emit } from "./events.js";
|
||||||
import { canAbortListeners, whenReady } from "./utils.js";
|
import { canAbortListeners, whenReady } from "./utils.js";
|
||||||
import Window from "./window.js";
|
import Window from "./window.js";
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ import Window from "./window.js";
|
||||||
* @param [data=null] - - Optional data to send along with the event.
|
* @param [data=null] - - Optional data to send along with the event.
|
||||||
*/
|
*/
|
||||||
function sendEvent(eventName: string, data: any = null): void {
|
function sendEvent(eventName: string, data: any = null): void {
|
||||||
Emit(new WailsEvent(eventName, data));
|
void Emit(eventName, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -464,213 +464,212 @@ func JSEvent(event uint) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
var eventToJS = map[uint]string{
|
var eventToJS = map[uint]string{
|
||||||
1024: "common:ApplicationOpenedWithFile",
|
1024: "ApplicationOpenedWithFile",
|
||||||
1025: "common:ApplicationStarted",
|
1025: "ApplicationStarted",
|
||||||
1026: "common:ThemeChanged",
|
1026: "ThemeChanged",
|
||||||
1027: "common:WindowClosing",
|
1027: "WindowClosing",
|
||||||
1028: "common:WindowDidMove",
|
1028: "WindowDidMove",
|
||||||
1029: "common:WindowDidResize",
|
1029: "WindowDidResize",
|
||||||
1030: "common:WindowDPIChanged",
|
1030: "WindowDPIChanged",
|
||||||
1031: "common:WindowFilesDropped",
|
1031: "WindowFilesDropped",
|
||||||
1032: "common:WindowFocus",
|
1032: "WindowFocus",
|
||||||
1033: "common:WindowFullscreen",
|
1033: "WindowFullscreen",
|
||||||
1034: "common:WindowHide",
|
1034: "WindowHide",
|
||||||
1035: "common:WindowLostFocus",
|
1035: "WindowLostFocus",
|
||||||
1036: "common:WindowMaximise",
|
1036: "WindowMaximise",
|
||||||
1037: "common:WindowMinimise",
|
1037: "WindowMinimise",
|
||||||
1038: "common:WindowRestore",
|
1038: "WindowRestore",
|
||||||
1039: "common:WindowRuntimeReady",
|
1039: "WindowRuntimeReady",
|
||||||
1040: "common:WindowShow",
|
1040: "WindowShow",
|
||||||
1041: "common:WindowUnFullscreen",
|
1041: "WindowUnFullscreen",
|
||||||
1042: "common:WindowUnMaximise",
|
1042: "WindowUnMaximise",
|
||||||
1043: "common:WindowUnMinimise",
|
1043: "WindowUnMinimise",
|
||||||
1044: "common:WindowZoom",
|
1044: "WindowZoom",
|
||||||
1045: "common:WindowZoomIn",
|
1045: "WindowZoomIn",
|
||||||
1046: "common:WindowZoomOut",
|
1046: "WindowZoomOut",
|
||||||
1047: "common:WindowZoomReset",
|
1047: "WindowZoomReset",
|
||||||
1048: "linux:ApplicationStartup",
|
1048: "ApplicationStartup",
|
||||||
1049: "linux:SystemThemeChanged",
|
1049: "SystemThemeChanged",
|
||||||
1050: "linux:WindowDeleteEvent",
|
1050: "WindowDeleteEvent",
|
||||||
1051: "linux:WindowDidMove",
|
1051: "WindowDidMove",
|
||||||
1052: "linux:WindowDidResize",
|
1052: "WindowDidResize",
|
||||||
1053: "linux:WindowFocusIn",
|
1053: "WindowFocusIn",
|
||||||
1054: "linux:WindowFocusOut",
|
1054: "WindowFocusOut",
|
||||||
1055: "linux:WindowLoadChanged",
|
1055: "WindowLoadChanged",
|
||||||
1056: "mac:ApplicationDidBecomeActive",
|
1056: "ApplicationDidBecomeActive",
|
||||||
1057: "mac:ApplicationDidChangeBackingProperties",
|
1057: "ApplicationDidChangeBackingProperties",
|
||||||
1058: "mac:ApplicationDidChangeEffectiveAppearance",
|
1058: "ApplicationDidChangeEffectiveAppearance",
|
||||||
1059: "mac:ApplicationDidChangeIcon",
|
1059: "ApplicationDidChangeIcon",
|
||||||
1060: "mac:ApplicationDidChangeOcclusionState",
|
1060: "ApplicationDidChangeOcclusionState",
|
||||||
1061: "mac:ApplicationDidChangeScreenParameters",
|
1061: "ApplicationDidChangeScreenParameters",
|
||||||
1062: "mac:ApplicationDidChangeStatusBarFrame",
|
1062: "ApplicationDidChangeStatusBarFrame",
|
||||||
1063: "mac:ApplicationDidChangeStatusBarOrientation",
|
1063: "ApplicationDidChangeStatusBarOrientation",
|
||||||
1064: "mac:ApplicationDidChangeTheme",
|
1064: "ApplicationDidChangeTheme",
|
||||||
1065: "mac:ApplicationDidFinishLaunching",
|
1065: "ApplicationDidFinishLaunching",
|
||||||
1066: "mac:ApplicationDidHide",
|
1066: "ApplicationDidHide",
|
||||||
1067: "mac:ApplicationDidResignActive",
|
1067: "ApplicationDidResignActive",
|
||||||
1068: "mac:ApplicationDidUnhide",
|
1068: "ApplicationDidUnhide",
|
||||||
1069: "mac:ApplicationDidUpdate",
|
1069: "ApplicationDidUpdate",
|
||||||
1070: "mac:ApplicationShouldHandleReopen",
|
1070: "ApplicationShouldHandleReopen",
|
||||||
1071: "mac:ApplicationWillBecomeActive",
|
1071: "ApplicationWillBecomeActive",
|
||||||
1072: "mac:ApplicationWillFinishLaunching",
|
1072: "ApplicationWillFinishLaunching",
|
||||||
1073: "mac:ApplicationWillHide",
|
1073: "ApplicationWillHide",
|
||||||
1074: "mac:ApplicationWillResignActive",
|
1074: "ApplicationWillResignActive",
|
||||||
1075: "mac:ApplicationWillTerminate",
|
1075: "ApplicationWillTerminate",
|
||||||
1076: "mac:ApplicationWillUnhide",
|
1076: "ApplicationWillUnhide",
|
||||||
1077: "mac:ApplicationWillUpdate",
|
1077: "ApplicationWillUpdate",
|
||||||
1078: "mac:MenuDidAddItem",
|
1078: "MenuDidAddItem",
|
||||||
1079: "mac:MenuDidBeginTracking",
|
1079: "MenuDidBeginTracking",
|
||||||
1080: "mac:MenuDidClose",
|
1080: "MenuDidClose",
|
||||||
1081: "mac:MenuDidDisplayItem",
|
1081: "MenuDidDisplayItem",
|
||||||
1082: "mac:MenuDidEndTracking",
|
1082: "MenuDidEndTracking",
|
||||||
1083: "mac:MenuDidHighlightItem",
|
1083: "MenuDidHighlightItem",
|
||||||
1084: "mac:MenuDidOpen",
|
1084: "MenuDidOpen",
|
||||||
1085: "mac:MenuDidPopUp",
|
1085: "MenuDidPopUp",
|
||||||
1086: "mac:MenuDidRemoveItem",
|
1086: "MenuDidRemoveItem",
|
||||||
1087: "mac:MenuDidSendAction",
|
1087: "MenuDidSendAction",
|
||||||
1088: "mac:MenuDidSendActionToItem",
|
1088: "MenuDidSendActionToItem",
|
||||||
1089: "mac:MenuDidUpdate",
|
1089: "MenuDidUpdate",
|
||||||
1090: "mac:MenuWillAddItem",
|
1090: "MenuWillAddItem",
|
||||||
1091: "mac:MenuWillBeginTracking",
|
1091: "MenuWillBeginTracking",
|
||||||
1092: "mac:MenuWillDisplayItem",
|
1092: "MenuWillDisplayItem",
|
||||||
1093: "mac:MenuWillEndTracking",
|
1093: "MenuWillEndTracking",
|
||||||
1094: "mac:MenuWillHighlightItem",
|
1094: "MenuWillHighlightItem",
|
||||||
1095: "mac:MenuWillOpen",
|
1095: "MenuWillOpen",
|
||||||
1096: "mac:MenuWillPopUp",
|
1096: "MenuWillPopUp",
|
||||||
1097: "mac:MenuWillRemoveItem",
|
1097: "MenuWillRemoveItem",
|
||||||
1098: "mac:MenuWillSendAction",
|
1098: "MenuWillSendAction",
|
||||||
1099: "mac:MenuWillSendActionToItem",
|
1099: "MenuWillSendActionToItem",
|
||||||
1100: "mac:MenuWillUpdate",
|
1100: "MenuWillUpdate",
|
||||||
1101: "mac:WebViewDidCommitNavigation",
|
1101: "WebViewDidCommitNavigation",
|
||||||
1102: "mac:WebViewDidFinishNavigation",
|
1102: "WebViewDidFinishNavigation",
|
||||||
1103: "mac:WebViewDidReceiveServerRedirectForProvisionalNavigation",
|
1103: "WebViewDidReceiveServerRedirectForProvisionalNavigation",
|
||||||
1104: "mac:WebViewDidStartProvisionalNavigation",
|
1104: "WebViewDidStartProvisionalNavigation",
|
||||||
1105: "mac:WindowDidBecomeKey",
|
1105: "WindowDidBecomeKey",
|
||||||
1106: "mac:WindowDidBecomeMain",
|
1106: "WindowDidBecomeMain",
|
||||||
1107: "mac:WindowDidBeginSheet",
|
1107: "WindowDidBeginSheet",
|
||||||
1108: "mac:WindowDidChangeAlpha",
|
1108: "WindowDidChangeAlpha",
|
||||||
1109: "mac:WindowDidChangeBackingLocation",
|
1109: "WindowDidChangeBackingLocation",
|
||||||
1110: "mac:WindowDidChangeBackingProperties",
|
1110: "WindowDidChangeBackingProperties",
|
||||||
1111: "mac:WindowDidChangeCollectionBehavior",
|
1111: "WindowDidChangeCollectionBehavior",
|
||||||
1112: "mac:WindowDidChangeEffectiveAppearance",
|
1112: "WindowDidChangeEffectiveAppearance",
|
||||||
1113: "mac:WindowDidChangeOcclusionState",
|
1113: "WindowDidChangeOcclusionState",
|
||||||
1114: "mac:WindowDidChangeOrderingMode",
|
1114: "WindowDidChangeOrderingMode",
|
||||||
1115: "mac:WindowDidChangeScreen",
|
1115: "WindowDidChangeScreen",
|
||||||
1116: "mac:WindowDidChangeScreenParameters",
|
1116: "WindowDidChangeScreenParameters",
|
||||||
1117: "mac:WindowDidChangeScreenProfile",
|
1117: "WindowDidChangeScreenProfile",
|
||||||
1118: "mac:WindowDidChangeScreenSpace",
|
1118: "WindowDidChangeScreenSpace",
|
||||||
1119: "mac:WindowDidChangeScreenSpaceProperties",
|
1119: "WindowDidChangeScreenSpaceProperties",
|
||||||
1120: "mac:WindowDidChangeSharingType",
|
1120: "WindowDidChangeSharingType",
|
||||||
1121: "mac:WindowDidChangeSpace",
|
1121: "WindowDidChangeSpace",
|
||||||
1122: "mac:WindowDidChangeSpaceOrderingMode",
|
1122: "WindowDidChangeSpaceOrderingMode",
|
||||||
1123: "mac:WindowDidChangeTitle",
|
1123: "WindowDidChangeTitle",
|
||||||
1124: "mac:WindowDidChangeToolbar",
|
1124: "WindowDidChangeToolbar",
|
||||||
1125: "mac:WindowDidDeminiaturize",
|
1125: "WindowDidDeminiaturize",
|
||||||
1126: "mac:WindowDidEndSheet",
|
1126: "WindowDidEndSheet",
|
||||||
1127: "mac:WindowDidEnterFullScreen",
|
1127: "WindowDidEnterFullScreen",
|
||||||
1128: "mac:WindowDidEnterVersionBrowser",
|
1128: "WindowDidEnterVersionBrowser",
|
||||||
1129: "mac:WindowDidExitFullScreen",
|
1129: "WindowDidExitFullScreen",
|
||||||
1130: "mac:WindowDidExitVersionBrowser",
|
1130: "WindowDidExitVersionBrowser",
|
||||||
1131: "mac:WindowDidExpose",
|
1131: "WindowDidExpose",
|
||||||
1132: "mac:WindowDidFocus",
|
1132: "WindowDidFocus",
|
||||||
1133: "mac:WindowDidMiniaturize",
|
1133: "WindowDidMiniaturize",
|
||||||
1134: "mac:WindowDidMove",
|
1134: "WindowDidMove",
|
||||||
1135: "mac:WindowDidOrderOffScreen",
|
1135: "WindowDidOrderOffScreen",
|
||||||
1136: "mac:WindowDidOrderOnScreen",
|
1136: "WindowDidOrderOnScreen",
|
||||||
1137: "mac:WindowDidResignKey",
|
1137: "WindowDidResignKey",
|
||||||
1138: "mac:WindowDidResignMain",
|
1138: "WindowDidResignMain",
|
||||||
1139: "mac:WindowDidResize",
|
1139: "WindowDidResize",
|
||||||
1140: "mac:WindowDidUpdate",
|
1140: "WindowDidUpdate",
|
||||||
1141: "mac:WindowDidUpdateAlpha",
|
1141: "WindowDidUpdateAlpha",
|
||||||
1142: "mac:WindowDidUpdateCollectionBehavior",
|
1142: "WindowDidUpdateCollectionBehavior",
|
||||||
1143: "mac:WindowDidUpdateCollectionProperties",
|
1143: "WindowDidUpdateCollectionProperties",
|
||||||
1144: "mac:WindowDidUpdateShadow",
|
1144: "WindowDidUpdateShadow",
|
||||||
1145: "mac:WindowDidUpdateTitle",
|
1145: "WindowDidUpdateTitle",
|
||||||
1146: "mac:WindowDidUpdateToolbar",
|
1146: "WindowDidUpdateToolbar",
|
||||||
1147: "mac:WindowDidZoom",
|
1147: "WindowDidZoom",
|
||||||
1148: "mac:WindowFileDraggingEntered",
|
1148: "WindowFileDraggingEntered",
|
||||||
1149: "mac:WindowFileDraggingExited",
|
1149: "WindowFileDraggingExited",
|
||||||
1150: "mac:WindowFileDraggingPerformed",
|
1150: "WindowFileDraggingPerformed",
|
||||||
1151: "mac:WindowHide",
|
1151: "WindowHide",
|
||||||
1152: "mac:WindowMaximise",
|
1152: "WindowMaximise",
|
||||||
1153: "mac:WindowUnMaximise",
|
1153: "WindowUnMaximise",
|
||||||
1154: "mac:WindowMinimise",
|
1154: "WindowMinimise",
|
||||||
1155: "mac:WindowUnMinimise",
|
1155: "WindowUnMinimise",
|
||||||
1156: "mac:WindowShouldClose",
|
1156: "WindowShouldClose",
|
||||||
1157: "mac:WindowShow",
|
1157: "WindowShow",
|
||||||
1158: "mac:WindowWillBecomeKey",
|
1158: "WindowWillBecomeKey",
|
||||||
1159: "mac:WindowWillBecomeMain",
|
1159: "WindowWillBecomeMain",
|
||||||
1160: "mac:WindowWillBeginSheet",
|
1160: "WindowWillBeginSheet",
|
||||||
1161: "mac:WindowWillChangeOrderingMode",
|
1161: "WindowWillChangeOrderingMode",
|
||||||
1162: "mac:WindowWillClose",
|
1162: "WindowWillClose",
|
||||||
1163: "mac:WindowWillDeminiaturize",
|
1163: "WindowWillDeminiaturize",
|
||||||
1164: "mac:WindowWillEnterFullScreen",
|
1164: "WindowWillEnterFullScreen",
|
||||||
1165: "mac:WindowWillEnterVersionBrowser",
|
1165: "WindowWillEnterVersionBrowser",
|
||||||
1166: "mac:WindowWillExitFullScreen",
|
1166: "WindowWillExitFullScreen",
|
||||||
1167: "mac:WindowWillExitVersionBrowser",
|
1167: "WindowWillExitVersionBrowser",
|
||||||
1168: "mac:WindowWillFocus",
|
1168: "WindowWillFocus",
|
||||||
1169: "mac:WindowWillMiniaturize",
|
1169: "WindowWillMiniaturize",
|
||||||
1170: "mac:WindowWillMove",
|
1170: "WindowWillMove",
|
||||||
1171: "mac:WindowWillOrderOffScreen",
|
1171: "WindowWillOrderOffScreen",
|
||||||
1172: "mac:WindowWillOrderOnScreen",
|
1172: "WindowWillOrderOnScreen",
|
||||||
1173: "mac:WindowWillResignMain",
|
1173: "WindowWillResignMain",
|
||||||
1174: "mac:WindowWillResize",
|
1174: "WindowWillResize",
|
||||||
1175: "mac:WindowWillUnfocus",
|
1175: "WindowWillUnfocus",
|
||||||
1176: "mac:WindowWillUpdate",
|
1176: "WindowWillUpdate",
|
||||||
1177: "mac:WindowWillUpdateAlpha",
|
1177: "WindowWillUpdateAlpha",
|
||||||
1178: "mac:WindowWillUpdateCollectionBehavior",
|
1178: "WindowWillUpdateCollectionBehavior",
|
||||||
1179: "mac:WindowWillUpdateCollectionProperties",
|
1179: "WindowWillUpdateCollectionProperties",
|
||||||
1180: "mac:WindowWillUpdateShadow",
|
1180: "WindowWillUpdateShadow",
|
||||||
1181: "mac:WindowWillUpdateTitle",
|
1181: "WindowWillUpdateTitle",
|
||||||
1182: "mac:WindowWillUpdateToolbar",
|
1182: "WindowWillUpdateToolbar",
|
||||||
1183: "mac:WindowWillUpdateVisibility",
|
1183: "WindowWillUpdateVisibility",
|
||||||
1184: "mac:WindowWillUseStandardFrame",
|
1184: "WindowWillUseStandardFrame",
|
||||||
1185: "mac:WindowZoomIn",
|
1185: "WindowZoomIn",
|
||||||
1186: "mac:WindowZoomOut",
|
1186: "WindowZoomOut",
|
||||||
1187: "mac:WindowZoomReset",
|
1187: "WindowZoomReset",
|
||||||
1188: "windows:APMPowerSettingChange",
|
1188: "APMPowerSettingChange",
|
||||||
1189: "windows:APMPowerStatusChange",
|
1189: "APMPowerStatusChange",
|
||||||
1190: "windows:APMResumeAutomatic",
|
1190: "APMResumeAutomatic",
|
||||||
1191: "windows:APMResumeSuspend",
|
1191: "APMResumeSuspend",
|
||||||
1192: "windows:APMSuspend",
|
1192: "APMSuspend",
|
||||||
1193: "windows:ApplicationStarted",
|
1193: "ApplicationStarted",
|
||||||
1194: "windows:SystemThemeChanged",
|
1194: "SystemThemeChanged",
|
||||||
1195: "windows:WebViewNavigationCompleted",
|
1195: "WebViewNavigationCompleted",
|
||||||
1196: "windows:WindowActive",
|
1196: "WindowActive",
|
||||||
1197: "windows:WindowBackgroundErase",
|
1197: "WindowBackgroundErase",
|
||||||
1198: "windows:WindowClickActive",
|
1198: "WindowClickActive",
|
||||||
1199: "windows:WindowClosing",
|
1199: "WindowClosing",
|
||||||
1200: "windows:WindowDidMove",
|
1200: "WindowDidMove",
|
||||||
1201: "windows:WindowDidResize",
|
1201: "WindowDidResize",
|
||||||
1202: "windows:WindowDPIChanged",
|
1202: "WindowDPIChanged",
|
||||||
1203: "windows:WindowDragDrop",
|
1203: "WindowDragDrop",
|
||||||
1204: "windows:WindowDragEnter",
|
1204: "WindowDragEnter",
|
||||||
1205: "windows:WindowDragLeave",
|
1205: "WindowDragLeave",
|
||||||
1206: "windows:WindowDragOver",
|
1206: "WindowDragOver",
|
||||||
1207: "windows:WindowEndMove",
|
1207: "WindowEndMove",
|
||||||
1208: "windows:WindowEndResize",
|
1208: "WindowEndResize",
|
||||||
1209: "windows:WindowFullscreen",
|
1209: "WindowFullscreen",
|
||||||
1210: "windows:WindowHide",
|
1210: "WindowHide",
|
||||||
1211: "windows:WindowInactive",
|
1211: "WindowInactive",
|
||||||
1212: "windows:WindowKeyDown",
|
1212: "WindowKeyDown",
|
||||||
1213: "windows:WindowKeyUp",
|
1213: "WindowKeyUp",
|
||||||
1214: "windows:WindowKillFocus",
|
1214: "WindowKillFocus",
|
||||||
1215: "windows:WindowNonClientHit",
|
1215: "WindowNonClientHit",
|
||||||
1216: "windows:WindowNonClientMouseDown",
|
1216: "WindowNonClientMouseDown",
|
||||||
1217: "windows:WindowNonClientMouseLeave",
|
1217: "WindowNonClientMouseLeave",
|
||||||
1218: "windows:WindowNonClientMouseMove",
|
1218: "WindowNonClientMouseMove",
|
||||||
1219: "windows:WindowNonClientMouseUp",
|
1219: "WindowNonClientMouseUp",
|
||||||
1220: "windows:WindowPaint",
|
1220: "WindowPaint",
|
||||||
1221: "windows:WindowRestore",
|
1221: "WindowRestore",
|
||||||
1222: "windows:WindowSetFocus",
|
1222: "WindowSetFocus",
|
||||||
1223: "windows:WindowShow",
|
1223: "WindowShow",
|
||||||
1224: "windows:WindowStartMove",
|
1224: "WindowStartMove",
|
||||||
1225: "windows:WindowStartResize",
|
1225: "WindowStartResize",
|
||||||
1226: "windows:WindowUnFullscreen",
|
1226: "WindowUnFullscreen",
|
||||||
1227: "windows:WindowZOrderChanged",
|
1227: "WindowZOrderChanged",
|
||||||
1228: "windows:WindowMinimise",
|
1228: "WindowMinimise",
|
||||||
1229: "windows:WindowUnMinimise",
|
1229: "WindowUnMinimise",
|
||||||
1230: "windows:WindowMaximise",
|
1230: "WindowMaximise",
|
||||||
1231: "windows:WindowUnMaximise",
|
1231: "WindowUnMaximise",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -187,8 +187,8 @@ func main() {
|
||||||
}
|
}
|
||||||
linuxEventsDecl.WriteString("\t" + eventTitle + " " + eventType + "\n")
|
linuxEventsDecl.WriteString("\t" + eventTitle + " " + eventType + "\n")
|
||||||
linuxEventsValues.WriteString("\t\t" + event + ": " + strconv.Itoa(id) + ",\n")
|
linuxEventsValues.WriteString("\t\t" + event + ": " + strconv.Itoa(id) + ",\n")
|
||||||
linuxTSEvents.WriteString("\t\t" + event + ": \"" + strings.TrimSpace(string(line)) + "\",\n")
|
linuxTSEvents.WriteString("\t\t" + event + ": \"linux:" + event + "\",\n")
|
||||||
eventToJS.WriteString("\t" + strconv.Itoa(id) + ": \"" + strings.TrimSpace(string(line)) + "\",\n")
|
eventToJS.WriteString("\t" + strconv.Itoa(id) + ": \"" + event + "\",\n")
|
||||||
maxLinuxEvents = id
|
maxLinuxEvents = id
|
||||||
linuxCHeaderEvents.WriteString("#define Event" + eventTitle + " " + strconv.Itoa(id) + "\n")
|
linuxCHeaderEvents.WriteString("#define Event" + eventTitle + " " + strconv.Itoa(id) + "\n")
|
||||||
case "mac":
|
case "mac":
|
||||||
|
|
@ -201,9 +201,9 @@ func main() {
|
||||||
}
|
}
|
||||||
macEventsDecl.WriteString("\t" + eventTitle + " " + eventType + "\n")
|
macEventsDecl.WriteString("\t" + eventTitle + " " + eventType + "\n")
|
||||||
macEventsValues.WriteString("\t\t" + event + ": " + strconv.Itoa(id) + ",\n")
|
macEventsValues.WriteString("\t\t" + event + ": " + strconv.Itoa(id) + ",\n")
|
||||||
macTSEvents.WriteString("\t\t" + event + ": \"" + strings.TrimSpace(string(line)) + "\",\n")
|
macTSEvents.WriteString("\t\t" + event + ": \"mac:" + event + "\",\n")
|
||||||
macCHeaderEvents.WriteString("#define Event" + eventTitle + " " + strconv.Itoa(id) + "\n")
|
macCHeaderEvents.WriteString("#define Event" + eventTitle + " " + strconv.Itoa(id) + "\n")
|
||||||
eventToJS.WriteString("\t" + strconv.Itoa(id) + ": \"" + strings.TrimSpace(string(line)) + "\",\n")
|
eventToJS.WriteString("\t" + strconv.Itoa(id) + ": \"" + event + "\",\n")
|
||||||
maxMacEvents = id
|
maxMacEvents = id
|
||||||
if ignoreEvent {
|
if ignoreEvent {
|
||||||
continue
|
continue
|
||||||
|
|
@ -249,8 +249,8 @@ func main() {
|
||||||
}
|
}
|
||||||
commonEventsDecl.WriteString("\t" + eventTitle + " " + eventType + "\n")
|
commonEventsDecl.WriteString("\t" + eventTitle + " " + eventType + "\n")
|
||||||
commonEventsValues.WriteString("\t\t" + event + ": " + strconv.Itoa(id) + ",\n")
|
commonEventsValues.WriteString("\t\t" + event + ": " + strconv.Itoa(id) + ",\n")
|
||||||
commonTSEvents.WriteString("\t\t" + event + ": \"" + strings.TrimSpace(string(line)) + "\",\n")
|
commonTSEvents.WriteString("\t\t" + event + ": \"common:" + event + "\",\n")
|
||||||
eventToJS.WriteString("\t" + strconv.Itoa(id) + ": \"" + strings.TrimSpace(string(line)) + "\",\n")
|
eventToJS.WriteString("\t" + strconv.Itoa(id) + ": \"" + event + "\",\n")
|
||||||
case "windows":
|
case "windows":
|
||||||
eventType := "ApplicationEventType"
|
eventType := "ApplicationEventType"
|
||||||
if strings.HasPrefix(event, "Window") {
|
if strings.HasPrefix(event, "Window") {
|
||||||
|
|
@ -261,8 +261,8 @@ func main() {
|
||||||
}
|
}
|
||||||
windowsEventsDecl.WriteString("\t" + eventTitle + " " + eventType + "\n")
|
windowsEventsDecl.WriteString("\t" + eventTitle + " " + eventType + "\n")
|
||||||
windowsEventsValues.WriteString("\t\t" + event + ": " + strconv.Itoa(id) + ",\n")
|
windowsEventsValues.WriteString("\t\t" + event + ": " + strconv.Itoa(id) + ",\n")
|
||||||
windowsTSEvents.WriteString("\t\t" + event + ": \"" + strings.TrimSpace(string(line)) + "\",\n")
|
windowsTSEvents.WriteString("\t\t" + event + ": \"windows:" + event + "\",\n")
|
||||||
eventToJS.WriteString("\t" + strconv.Itoa(id) + ": \"" + strings.TrimSpace(string(line)) + "\",\n")
|
eventToJS.WriteString("\t" + strconv.Itoa(id) + ": \"" + event + "\",\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue