Struct winrt_notification::Toast [−][src]
pub struct Toast { /* fields omitted */ }
Implementations
This can be used if you do not have a AppUserModelID.
However, the toast will erroniously report its origin as powershell.
Constructor for the toast builder.
app_id is the running application’s AppUserModelID.
If the program you are using this in was not installed, use Toast::POWERSHELL_APP_ID for now
Sets the title of the toast.
Will be white. Supports Unicode ✓
Add/Sets the first line of text below title.
Will be grey. Supports Unicode ✓
Add/Sets the second line of text below title.
Will be grey. Supports Unicode ✓
Set the icon shown in the upper left of the toast
The default is determined by your app id. If you are using the powershell workaround, it will be the powershell icon
Add/Set a Hero image for the toast.
This will be above the toast text and the icon.
Add an image to the toast
May be done many times. Will appear below text.
Set the sound for the toast or silence it
Default is Sound::IM