Example #1
0
 public virtual void Remove(int handle, IDispatcher dispatcher)
 {
     dispatcher.BeginInvokeOnMainThread(() =>
     {
         RemoveTimeout(handle);
     });
 }
 public static void Dispatch(this IDispatcher dispatcher, Action action)
 {
     if (dispatcher != null)
     {
         if (dispatcher.IsInvokeRequired)
         {
             dispatcher.BeginInvokeOnMainThread(action);
         }
         else
         {
             action();
         }
     }
     else
     {
         if (Device.IsInvokeRequired)
         {
             Device.BeginInvokeOnMainThread(action);
         }
         else
         {
             action();
         }
     }
 }
Example #3
0
 static private void UpdateStatus(string message, string toast, Label label, IDispatcher dispatcher)
 {
     dispatcher.BeginInvokeOnMainThread(() =>
     {
         label.Text = message;
     });
 }
Example #4
0
 internal void Navigated(IDispatcher dispatcher)
 {
     dispatcher.BeginInvokeOnMainThread(() =>
     {
         ShowWebView = true;
         ShowLoading = false;
     });
 }