Struct winrt_notification::Toast [] [src]

pub struct Toast { /* fields omitted */ }

Methods

impl Toast
[src]

POWERSHELL_APP_ID: &'static str = "{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\\WindowsPowerShell\\v1.0\\powershell.exe"

This can be used if you do not have a AppUserModelID.

However, the toast will erroniously report its origin as powershell.

[src]

Constructor for the toast builder

app_id is the running applications AppUserModelID. https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx

If the program you are using this in was not installed, use Toast::POWERSHELL_APP_ID for now

[src]

Sets the title of the toast.

Will be white. Supports Unicode ✓

[src]

Add/Sets the first line of text below title.

Will be grey. Supports Unicode ✓

[src]

Add/Sets the second line of text below title.

Will be grey. Supports Unicode ✓

[src]

Set the length of time to show the toast

[src]

Set the icon shown in the upper left of the toast

The default is supposed to be determined by your app id. In practice it will be blank.

[src]

Add/Set a Hero image for the toast.

This will be above the toast text and the icon.

[src]

Add an image to the toast

May be done many times. Will appear below text.

[src]

Set the sound for the toast or silence it

Default is Sound::IM

[src]

Display the toast on the screen