4 namespace Tizen.Xamarin.Forms.Extension
7 /// This class is for the internal use by toast.
9 internal class ToastProxy : IToast
11 IToast _toastProxy = null;
15 _toastProxy = DependencyService.Get<IToast>(DependencyFetchTarget.NewInstance);
17 if (_toastProxy == null)
18 throw new Exception("RealObject is null, Internal instance via DependecyService was not created.");
25 return _toastProxy.Duration;
30 _toastProxy.Duration = value;
38 return _toastProxy.Text;
43 _toastProxy.Text = value;
49 _toastProxy.Dismiss();