private static void GraceAnimatedProgressButtonOnTouchUpInside(object sender, EventArgs e) { Hud.Create().WithProgressContent() .WithGracePeriod(TimeSpan.FromSeconds(2)) .Build() .Flash(TimeSpan.FromSeconds(1)); }
private static void AnimatedErrorButtonOnTouchUpInside(object sender, EventArgs e) { var hud = Hud.Create().WithErrorContent().Build(); hud.Show(); hud.HideWithDelay(TimeSpan.FromSeconds(2)); }
private static void AnimatedSuccessButtonOnTouchUpInside(object sender, EventArgs e) { Hud.Create() .WithSuccessContent() .Build() .Flash(TimeSpan.FromSeconds(2)); }
private static void AnimatedStatusProgressButtonOnTouchUpInside(object sender, EventArgs e) { Hud.Create().WithProgressContent() .WithTitle("Title") .WithSubtitle("Subtitle") .Build() .Flash(TimeSpan.FromSeconds(2)); }
private static async void TextButtonOnTouchUpInside(object sender, EventArgs e) { await Hud.Create().WithLabelContent() .WithTitle("Requesting Licence…") .Build() .FlashAsync(TimeSpan.FromSeconds(2)); Debug.WriteLine("License Obtained"); }
private static async void AnimatedProgressButtonOnTouchUpInside(object sender, EventArgs e) { Hud.Create().WithProgressContent() .WithBackgroundDimming(true) .Build() .Show(); await Task.Delay(TimeSpan.FromSeconds(2)); Hud.Create().WithSuccessContent() .Build() .Flash(TimeSpan.FromSeconds(1)); }