C# Class Microsoft.HockeyApp.Tools.NotificationTool

Show file Open project: bitstadium/HockeySDK-Windows Class Usage Examples

Private Properties

Property Type Description
Close void
ClosePopup void
CreateNotificationBox Microsoft.HockeyApp.Controls.NotificationBox.NotificationBox
HandleBackKeyAndAppBar void
OpenPopup void
SafeShow void
TryFindTemplate System.Windows.DataTemplate
parentPage_BackKeyPress void

Public Methods

Method Description
Show ( string title, string message ) : void

Displays a notification box with title, message and custom actions.

ShowAgain ( string title, string message, bool forceShowAgain, Action suppression, string uniqueKey ) : void

Displays a notification box with title, message and custom actions. In addition a message asking if this message should be shown again next time.

ShowAgain ( string title, string message, string showAgainText, bool forceShowAgain, Action suppression, string uniqueKey ) : void

Displays a notification box with title, message and custom actions. In addition a message asking if this message should be shown again next time.

Private Methods

Method Description
Close ( ) : void
ClosePopup ( ) : void
CreateNotificationBox ( string title, string message, NotificationAction commands, Visibility showAgainVisibility = Visibility.Collapsed, bool showAgain = true, string showAgainText = null, string uniqueKey = null ) : NotificationBox
HandleBackKeyAndAppBar ( ) : void
OpenPopup ( ) : void
SafeShow ( Dispatcher dispatcher, System.Action showAction ) : void
TryFindTemplate ( object templateKey ) : System.Windows.DataTemplate
parentPage_BackKeyPress ( object sender, CancelEventArgs e ) : void

Method Details

Show() public static method

Displays a notification box with title, message and custom actions.
public static Show ( string title, string message ) : void
title string The title of this message.
message string The message body text.
return void

ShowAgain() public static method

Displays a notification box with title, message and custom actions. In addition a message asking if this message should be shown again next time.
public static ShowAgain ( string title, string message, bool forceShowAgain, Action suppression, string uniqueKey ) : void
title string The title of this message.
message string The message body text.
forceShowAgain bool Value indicating whether to force message display in case that the user suppressed this message,
suppression Action Callback for indicating whether message suppressed or not..
uniqueKey string Unique key representing a specific message identity.
return void

ShowAgain() public static method

Displays a notification box with title, message and custom actions. In addition a message asking if this message should be shown again next time.
public static ShowAgain ( string title, string message, string showAgainText, bool forceShowAgain, Action suppression, string uniqueKey ) : void
title string The title of this message.
message string The message body text.
showAgainText string The text asking if this message should be shown again.
forceShowAgain bool Value indicating whether to force message display in case that the user suppressed this message,
suppression Action Callback for indicating whether message suppressed or not..
uniqueKey string Unique key representing a specific message identity.
return void