@@ -4,12 +4,58 @@ namespace MaterialDesignThemes.Wpf
4
4
{
5
5
public interface ISnackbarMessageQueue
6
6
{
7
+ /// <summary>
8
+ /// Queues a notificaton message for display in a snackbar.
9
+ /// </summary>
10
+ /// <param name="content">Message.</param>
7
11
void Enqueue ( object content ) ;
8
12
13
+ /// <summary>
14
+ /// Queues a notificaton message for display in a snackbar.
15
+ /// </summary>
16
+ /// <param name="content">Message.</param>
17
+ /// <param name="actionContent">Content for the action button.</param>
18
+ /// <param name="actionHandler">Call back to be executed if user clicks the action button.</param>
9
19
void Enqueue ( object content , object actionContent , Action actionHandler ) ;
10
20
21
+ /// <summary>
22
+ /// Queues a notificaton message for display in a snackbar.
23
+ /// </summary>
24
+ /// <param name="content">Message.</param>
25
+ /// <param name="actionContent">Content for the action button.</param>
26
+ /// <param name="actionHandler">Call back to be executed if user clicks the action button.</param>
27
+ /// <param name="actionArgument">Argument to pass to <paramref name="actionHandler"/>.</param>
11
28
void Enqueue < TArgument > ( object content , object actionContent , Action < TArgument > actionHandler , TArgument actionArgument ) ;
12
29
30
+ /// <summary>
31
+ /// Queues a notificaton message for display in a snackbar.
32
+ /// </summary>
33
+ /// <param name="content">Message.</param>
34
+ /// <param name="neverConsiderToBeDuplicate">Subsequent, duplicate messages queued within a short time span will
35
+ /// be discarded. To override this behaviour and ensure the message always gets displayed set to <c>true</c>.</param>
36
+ void Enqueue ( object content , bool neverConsiderToBeDuplicate ) ;
37
+
38
+ /// <summary>
39
+ /// Queues a notificaton message for display in a snackbar.
40
+ /// </summary>
41
+ /// <param name="content">Message.</param>
42
+ /// <param name="actionContent">Content for the action button.</param>
43
+ /// <param name="actionHandler">Call back to be executed if user clicks the action button.</param>
44
+ /// <param name="neverConsiderToBeDuplicate">Subsequent, duplicate messages queued within a short time span will
45
+ /// be discarded. To override this behaviour and ensure the message always gets displayed set to <c>true</c>.</param>
46
+ void Enqueue ( object content , object actionContent , Action actionHandler , bool neverConsiderToBeDuplicate ) ;
47
+
48
+ /// <summary>
49
+ /// Queues a notificaton message for display in a snackbar.
50
+ /// </summary>
51
+ /// <param name="content">Message.</param>
52
+ /// <param name="actionContent">Content for the action button.</param>
53
+ /// <param name="actionHandler">Call back to be executed if user clicks the action button.</param>
54
+ /// <param name="actionArgument">Argument to pass to <paramref name="actionHandler"/>.</param>
55
+ /// <param name="neverConsiderToBeDuplicate">Subsequent, duplicate messages queued within a short time span will
56
+ /// be discarded. To override this behaviour and ensure the message always gets displayed set to <c>true</c>.</param>
57
+ void Enqueue < TArgument > ( object content , object actionContent , Action < TArgument > actionHandler , TArgument actionArgument , bool neverConsiderToBeDuplicate ) ;
58
+
13
59
//TODO consider additional variants of Enqueue:
14
60
// ShowAsync(. . .)
15
61
}
0 commit comments