Removing Tizen.Xamarin.Forms.Extensions
[profile/tv/apps/dotnet/mediahub.git] / TVMediaHub / TVMediaHub.Tizen / Extensions / Toast.cs
1 namespace Tizen.Xamarin.Forms.Extension
2 {
3     /// <summary>
4     /// The Toast class provides properties that show simple types of messages.
5     /// </summary>
6     /// <example>
7     /// <code>
8     /// Toast.DisplayText("Hello World", 3000)
9     /// </code>
10     /// </example>
11     public sealed class Toast
12     {
13         /// <summary>
14         /// It shows the simplest form of the message.
15         /// </summary>
16         /// <param name="text">The body text of the toast.</param>
17         /// <param name="duration">How long to display the text in milliseconds.</param>
18         public static void DisplayText(string text, int duration = 3000)
19         {
20             new ToastProxy
21             {
22                 Text = text,
23                 Duration = duration,
24             }.Show();
25         }
26     }
27 }