IMessageService

Name Value
Assembly Catel.Core
Namespace Catel.Services
Available on .NET Framework 4.5, .NET Framework 4.6, Xamarin - Android, Xamarin - iOS
public interface IMessageService

Interface for the message service.

Methods

ShowAsync(string message, string caption, MessageButton button, MessageImage icon)

Shows the specified message and returns the result.

Parameters

Name Description
message The message.
caption The caption.
button The button.
icon The icon.

Returns

The MessageResult.

Exceptions

Name Description
ArgumentException The message isnull or whitespace.

ShowErrorAsync(Exception exception)

Shows an error message to the user and allows a callback operation when the message is completed.

Parameters

Name Description
exception The exception.

Exceptions

Name Description
ArgumentNullException The exception isnull.

ShowErrorAsync(string message, string caption)

Shows an error message to the user and allows a callback operation when the message is completed.

Parameters

Name Description
message The message.
caption The caption.

Exceptions

Name Description
ArgumentException The message isnull or whitespace.

ShowInformationAsync(string message, string caption)

Shows an information message to the user and allows a callback operation when the message is completed.

Parameters

Name Description
message The message.
caption The caption.

Exceptions

Name Description
ArgumentException The message isnull or whitespace.

ShowWarningAsync(string message, string caption)

Shows a warning message to the user and allows a callback operation when the message is completed.

Parameters

Name Description
message The message.
caption The caption.

Exceptions

Name Description
ArgumentException The message isnull or whitespace.

Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion