You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+60-8Lines changed: 60 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -17,10 +17,13 @@ WinToast is a lightly library written in C++ which brings a complete integration
17
17
Toast notifications allows your app to inform the users about relevant information and timely events that they should see and take action upon inside your app, such as a new instant message, a new friend request, breaking news, or a calendar event.
*The user can use the default system sound or specify a sound to play when a toast notification is displayed. Same behavior for the toast notification image, by default Windows try to use the app icon.*
55
+
56
+
<divid='id3' />
51
57
52
58
## Event Handler
53
59
@@ -72,7 +78,7 @@ class WinToastHandlerExample : public IWinToastHandler {
72
78
void toastFailed() const;
73
79
};
74
80
```
75
-
<div id='id3' />
81
+
<div id='id4' />
76
82
77
83
## Expiration Time
78
84
@@ -81,7 +87,7 @@ Set the time after which a toast notification is no longer considered current or
81
87
> For Windows 8.x app, this property also causes the toast notification to be removed from the
82
88
> Action Center once the specified data and time is reached.
std::wcout << L"Error: Could not launch your toast notification. Error: "
159
+
<< error << std::endl;
160
+
}
161
+
```
162
+
163
+
<div id='id6' />
119
164
120
165
## Example of Usage
121
166
@@ -166,8 +211,15 @@ if (!WinToast::instance()->showToast(templ, handler)) {
166
211
std::wcout << L"Error: Could not launch your toast notification!" << std::endl;
167
212
}
168
213
```
214
+
<div id='id7' />
215
+
216
+
## Windows 10 - Toast Configuration
217
+
218
+
Windows allows the configuration of the default behavior of a toast notification. This can be done in the *Ease of Access* configuration by modifying the *Other options* tab.
169
219
220
+
The system configuration help you to define how long you want notifications to appear for (5 seconds to 5 minutes) as turning on visual notifications for sound.
170
221
222
+

0 commit comments