Struct winrt_notification::Toast [] [src]

pub struct Toast { /* fields omitted */ }

Methods

impl Toast
[src]

[src]

Constructor for the toast builder

app_id is used in the toast to inform the user where it came from.

[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