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
/// Add an button to the toast that will be display to the right of the input text box, achieving a quick reply scenario.
124
-
/// </summary>
125
-
/// <param name="textBoxId">ID of an existing <see cref="ToastTextBox"/> in order to have this button display to the right of the input, achieving a quick reply scenario.</param>
126
-
/// <param name="content">Text to display on the button.</param>
127
-
/// <param name="activationType">Type of activation this button will use when clicked. Defaults to Foreground.</param>
128
-
/// <param name="arguments">App-defined arguments that the app can later retrieve once it is activated when the user clicks the button.</param>
129
-
/// <returns>The current instance of <see cref="ToastContentBuilder"/></returns>
/// <param name="arguments">App-defined string of arguments that the app can later retrieve once it is activated when the user clicks the button.</param>
141
87
/// <param name="imageUri">Optional image icon for the button to display (required for buttons adjacent to inputs like quick reply).</param>
142
88
/// <returns>The current instance of <see cref="ToastContentBuilder"/></returns>
@@ -156,48 +105,37 @@ public ToastContentBuilder AddButton(string content, ToastActivationType activat
156
105
returnAddButton(button);
157
106
}
158
107
159
-
/// <summary>
160
-
/// Add an button to the toast that will be display to the right of the input text box, achieving a quick reply scenario.
161
-
/// </summary>
162
-
/// <param name="textBoxId">ID of an existing <see cref="ToastTextBox"/> in order to have this button display to the right of the input, achieving a quick reply scenario.</param>
163
-
/// <param name="content">Text to display on the button.</param>
164
-
/// <param name="activationType">Type of activation this button will use when clicked. Defaults to Foreground.</param>
165
-
/// <param name="arguments">App-defined arguments that the app can later retrieve once it is activated when the user clicks the button.</param>
166
-
/// <param name="imageUri">An optional image icon for the button to display (required for buttons adjacent to inputs like quick reply)</param>
167
-
/// <returns>The current instance of <see cref="ToastContentBuilder"/></returns>
/// Configures the toast notification to launch the specified url when the toast body is clicked.
248
+
/// </summary>
249
+
/// <param name="protocol">The protocol to launch.</param>
250
+
/// <param name="targetApplicationPfn">New in Creators Update: The target PFN, so that regardless of whether multiple apps are registered to handle the same protocol uri, your desired app will always be launched.</param>
251
+
/// <returns>The current instance of <see cref="ToastContentBuilder"/></returns>
/// Interfaces for classes that can have activation info added to them.
9
+
/// </summary>
10
+
/// <typeparam name="T">The type of the host object.</typeparam>
11
+
internalinterfaceIToastActivateableBuilder<T>
12
+
{
13
+
/// <summary>
14
+
/// Adds a key (without value) to the activation arguments that will be returned when the content is clicked.
15
+
/// </summary>
16
+
/// <param name="key">The key.</param>
17
+
/// <returns>The current instance of the object.</returns>
18
+
TAddArgument(stringkey);
19
+
20
+
/// <summary>
21
+
/// Adds a key/value to the activation arguments that will be returned when the content is clicked.
22
+
/// </summary>
23
+
/// <param name="key">The key for this value.</param>
24
+
/// <param name="value">The value itself.</param>
25
+
/// <returns>The current instance of the object.</returns>
26
+
#if WINRT
27
+
[Windows.Foundation.Metadata.DefaultOverload]
28
+
#endif
29
+
TAddArgument(stringkey,stringvalue);
30
+
31
+
/// <summary>
32
+
/// Adds a key/value to the activation arguments that will be returned when the content is clicked.
33
+
/// </summary>
34
+
/// <param name="key">The key for this value.</param>
35
+
/// <param name="value">The value itself.</param>
36
+
/// <returns>The current instance of the object.</returns>
37
+
TAddArgument(stringkey,intvalue);
38
+
39
+
/// <summary>
40
+
/// Adds a key/value to the activation arguments that will be returned when the content is clicked.
41
+
/// </summary>
42
+
/// <param name="key">The key for this value.</param>
43
+
/// <param name="value">The value itself.</param>
44
+
/// <returns>The current instance of the object.</returns>
45
+
TAddArgument(stringkey,doublevalue);
46
+
47
+
/// <summary>
48
+
/// Adds a key/value to the activation arguments that will be returned when the content is clicked.
49
+
/// </summary>
50
+
/// <param name="key">The key for this value.</param>
51
+
/// <param name="value">The value itself.</param>
52
+
/// <returns>The current instance of the object.</returns>
53
+
TAddArgument(stringkey,floatvalue);
54
+
55
+
/// <summary>
56
+
/// Adds a key/value to the activation arguments that will be returned when the content is clicked.
57
+
/// </summary>
58
+
/// <param name="key">The key for this value.</param>
59
+
/// <param name="value">The value itself.</param>
60
+
/// <returns>The current instance of the object.</returns>
61
+
TAddArgument(stringkey,boolvalue);
62
+
63
+
#if !WINRT
64
+
/// <summary>
65
+
/// Adds a key/value to the activation arguments that will be returned when the content is clicked.
66
+
/// </summary>
67
+
/// <param name="key">The key for this value.</param>
68
+
/// <param name="value">The value itself. Note that the enums are stored using their numeric value, so be aware that changing your enum number values might break existing activation of toasts currently in Action Center.</param>
69
+
/// <returns>The current instance of the object.</returns>
70
+
TAddArgument(stringkey,Enumvalue);
71
+
#endif
72
+
73
+
/// <summary>
74
+
/// Configures the content to use background activation when it is clicked.
75
+
/// </summary>
76
+
/// <returns>The current instance of the object.</returns>
77
+
TSetBackgroundActivation();
78
+
79
+
/// <summary>
80
+
/// Configures the content to use protocol activation when it is clicked.
81
+
/// </summary>
82
+
/// <param name="protocol">The protocol to launch.</param>
83
+
/// <returns>The current instance of the object.</returns>
84
+
TSetProtocolActivation(Uriprotocol);
85
+
86
+
/// <summary>
87
+
/// Configures the content to use protocol activation when it is clicked.
88
+
/// </summary>
89
+
/// <param name="protocol">The protocol to launch.</param>
90
+
/// <param name="targetApplicationPfn">New in Creators Update: The target PFN, so that regardless of whether multiple apps are registered to handle the same protocol uri, your desired app will always be launched.</param>
91
+
/// <returns>The current instance of the object.</returns>
0 commit comments