2 using Tizen.Xamarin.Forms.Extension.Renderer;
4 using EPopup = ElmSharp.Popup;
5 using TForms = Xamarin.Forms.Platform.Tizen.Forms;
7 [assembly: Dependency(typeof(ToastImplementation))]
9 namespace Tizen.Xamarin.Forms.Extension.Renderer
11 internal class ToastImplementation : IToast, IDisposable
13 static readonly string DefaultStyle = "toast";
14 static readonly string DefaultPart = "default";
17 string _text = string.Empty;
18 EPopup _control = null;
19 bool _isDisposed = false;
47 public ToastImplementation()
49 _control = new EPopup(TForms.Context.MainWindow)
59 ~ToastImplementation()
77 GC.SuppressFinalize(this);
80 protected virtual void Dispose(bool isDisposing)
99 _control.Timeout = Duration / 1000.0;
104 _control.SetPartText(DefaultPart, Text);