Presenting a message is a common business requirement in your application. Message Presenters are designed to do just that, with a single line of code. Here are some basic usage examples. To show a simple message you can use the following code snippet:
Message Presenter can also be customized to support more buttons with custom callbacks, as follows:
Using the message presenter, you are able to show a message to the user from a centralized call in the view model. You can show message in the form of simple dialog with a message, dialog with the combination of title and message, and a dialog that shows the messsage with the title along with three buttons that represents positive, negative and neutral actions. The following illustrations show the possible message presenters to show on each platform.