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(); } } }
static private void UpdateStatus(string message, string toast, Label label, IDispatcher dispatcher) { dispatcher.BeginInvokeOnMainThread(() => { label.Text = message; }); }
internal void Navigated(IDispatcher dispatcher) { dispatcher.BeginInvokeOnMainThread(() => { ShowWebView = true; ShowLoading = false; }); }