예제 #1
0
 public void ShowNotification(string message, NotificationLength length)
 {
     Application.SynchronizationContext.Post(ignored =>
     {
         if (CurrentActivity != null)
         {
             var toastLength = length == NotificationLength.Short ? ToastLength.Short : ToastLength.Long;
             Toast.MakeText(CurrentActivity, message, toastLength).Show();
         }
     }, null);
 }
예제 #2
0
 public void ShowNotification(string message, NotificationLength length)
 {
     _dialogService.ShowNotification(message, length);
 }