Skip to content
This repository was archived by the owner on Aug 27, 2020. It is now read-only.

IMessageVisualizerService

Mark Smith edited this page Aug 29, 2016 · 1 revision

IMessageVisualizerService

The IMessageVisualizerService provides a simple abstraction over displaying an alert or MessageBox.

Methods

  • 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);
}