forked from xamarinhq/xamu-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
IMessageVisualizerService
Mark Smith edited this page Aug 29, 2016
·
1 revision
The IMessageVisualizerService provides a simple abstraction over displaying an alert or MessageBox.
-
ShowMessage: display an alert on the UI.
/// <summary>
/// Interface to display UI "MessageBox" style prompts.
/// </summary>
public interface IMessageVisualizerService
{
/// <summary>
/// Show a message on the UI
/// </summary>
/// <returns>Async result (true/false)</returns>
/// <param name="title">Title</param>
/// <param name="message">Message</param>
/// <param name="ok">Text for OK button</param>
/// <param name="cancel">Optional text for Cancel button</param>
Task<bool> ShowMessage(
string title, string message, string ok, string cancel = null);
}