Ejemplo n.º 1
0
 public override void ShowImage(object image, string message = null, Abstractions.MaskType mask = Abstractions.MaskType.Black, TimeSpan? timeout = default(TimeSpan?), Action clickCallback = null, string cancelCaption = null, Action cancelCallback = null)
 {
     if (mask == Abstractions.MaskType.Gradient) mask = Abstractions.MaskType.Black;
     if (image.GetType() == typeof(int))
         AndHUD.Shared.ShowImage(Forms.Context, (int)image, message, (AndroidHUD.MaskType)mask + 1, timeout, clickCallback, cancelCallback);
     else
         AndHUD.Shared.ShowImage(Forms.Context, (Android.Graphics.Drawables.Drawable)image, message, (AndroidHUD.MaskType)mask + 1, timeout, clickCallback, cancelCallback);
 }
Ejemplo n.º 2
0
 public override void ShowSuccess(string message = null, Abstractions.MaskType mask = Abstractions.MaskType.Black, TimeSpan? timeout = default(TimeSpan?), Action clickCallback = null, string cancelCaption = null, Action cancelCallback = null)
 {
     if (mask == Abstractions.MaskType.Gradient) mask = Abstractions.MaskType.Black;
     if (string.IsNullOrEmpty(message))
         AndHUD.Shared.ShowSuccess(Forms.Context, message, (AndroidHUD.MaskType)mask + 1, timeout, clickCallback, cancelCallback);
     else
         AndHUD.Shared.ShowSuccessWithStatus(Forms.Context, message, (AndroidHUD.MaskType)mask + 1, timeout, clickCallback, cancelCallback);
 }
Ejemplo n.º 3
0
 public override void ShowToast(string message, Abstractions.MaskType mask = Abstractions.MaskType.Black, ToastPosition position = ToastPosition.Center, TimeSpan? timeout = default(TimeSpan?), Action clickCallback = null, Action cancelCallback = null)
 {
     if (mask == Abstractions.MaskType.Gradient) mask = Abstractions.MaskType.Black;
     AndHUD.Shared.ShowToast(Forms.Context, message, (AndroidHUD.MaskType)mask + 1, timeout, (position == ToastPosition.Center), clickCallback, cancelCallback);
 }
Ejemplo n.º 4
0
 public override void Show(string message = null, float progress = -1F, Abstractions.MaskType mask = Abstractions.MaskType.Black, bool centered = true, TimeSpan? timeout = default(TimeSpan?), Action clickCallback = null, string cancelCaption = null, Action cancelCallback = null)
 {
     if (mask == Abstractions.MaskType.Gradient) mask = Abstractions.MaskType.Black;
     AndHUD.Shared.Show(Forms.Context, message, (int)progress, (AndroidHUD.MaskType)mask + 1, timeout, clickCallback, centered, cancelCallback);
 }