public static void StopAnimatingLoading() { lock (_lock) { if (count == 1) { _modalBackgroundView.Dismiss(); _modalBackgroundView = null; } count = Math.Max(0, count - 1); } }
public static UIView StartAnimatingLoading() { lock (_lock) { count++; if (count == 1) { _modalBackgroundView = new LoadingOverlayView(); _modalBackgroundView.Show(); } } return(_modalBackgroundView); }