private void ShowInternal(string status, SVProgressHUDMask mask) { this.FadeOutTimer = null; this.ImageView.Hidden = true; this.mask = mask; this.SetStatus(status); this.SpinnerView.StartAnimating(); this.OverlayWindow.UserInteractionEnabled = (this.mask != SVProgressHUDMask.None); this.OverlayWindow.MakeKeyAndVisible(); this.PositionHUD(null); if (this.Alpha != 1f) { RegisterNotifications(); var transform = this.HudView.Transform; transform.Scale(1.3f, 1.3f); this.HudView.Transform = transform; UIView.Animate(0.15f, 0, UIViewAnimationOptions.AllowUserInteraction | UIViewAnimationOptions.CurveEaseOut | UIViewAnimationOptions.BeginFromCurrentState, () => { var normal = this.HudView.Transform; normal.Scale(1 / 1.3f, 1 / 1.3f); this.HudView.Transform = normal; this.Alpha = 1; }, () => {}); } this.SetNeedsDisplay(); }
private void ShowInternal(string status, SVProgressHUDMask mask) { this.FadeOutTimer = null; this.ImageView.Hidden = true; this.mask = mask; this.SetStatus(status); this.SpinnerView.StartAnimating(); this.OverlayWindow.UserInteractionEnabled = (this.mask!=SVProgressHUDMask.None); this.OverlayWindow.MakeKeyAndVisible(); this.PositionHUD(null); if (this.Alpha != 1f) { RegisterNotifications(); var transform = this.HudView.Transform; transform.Scale(1.3f,1.3f); this.HudView.Transform = transform; UIView.Animate(0.15f, 0, UIViewAnimationOptions.AllowUserInteraction | UIViewAnimationOptions.CurveEaseOut | UIViewAnimationOptions.BeginFromCurrentState, () => { var normal = this.HudView.Transform; normal.Scale(1/1.3f,1/1.3f); this.HudView.Transform = normal; this.Alpha = 1; }, () => {}); } this.SetNeedsDisplay(); }
public static void Show(SVProgressHUDMask mask) { Show(null, mask); }
public static void Show(string status, SVProgressHUDMask mask) { SharedView.ShowInternal(status, mask); }