Skip to content

Commit

Permalink
Merge pull request #30 from malja/expiration
Browse files Browse the repository at this point in the history
Expiration time note
  • Loading branch information
mohabouje authored Apr 1, 2018
2 parents f9a86f3 + 4aed56e commit a5b3cda
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ Example of a `ImageAndText02` template:

```cpp
WinToastTemplate templ = WinToastTemplate(WinToastTemplate::ImageAndText02);
templ.setImagePath(L"C:/example.png");
templ.setTextField(L"title", WinToastTemplate::FirstLine);
templ.setTextField(L"subtitle", WinToastTemplate::SecondLine);
templ.setImagePath(L"C:/example.png");
```

*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.*
**Note:** 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.*

<div id='id3' />

Expand Down Expand Up @@ -87,6 +86,9 @@ Set the time after which a toast notification is no longer considered current or
> For Windows 8.x app, this property also causes the toast notification to be removed from the
> Action Center once the specified data and time is reached.
**Note:** Default Windows behavior is to hide notification automatically after time set in Windows Ease of Access Settings.
If you need to preserve notification in Windows Action Center for longer period of time, you have to call `WinToastTemplate::setExpiration` method.
<div id='id5' />
## Modern features - Windows 10
Expand Down

0 comments on commit a5b3cda

Please sign in to comment.