Exemplo n.º 1
0
 public Task SnackbarAsync(
     string message,
     int msDuration = MaterialSnackbar.DurationLong,
     MaterialSnackbarConfiguration configuration = null)
 {
     return(MaterialSnackbar.ShowAsync(message, msDuration, configuration));
 }
        internal static async Task <IMaterialModalPage> Loading(string message, MaterialSnackbarConfiguration configuration = null)
        {
            var snackbar = new MaterialSnackbar(message, null, DurationIndefinite, configuration);
            await snackbar.ShowAsync();

            return(snackbar);
        }
Exemplo n.º 3
0
 public Task <bool> SnackbarAsync(
     string message,
     string actionButtonText,
     int msDuration = MaterialSnackbar.DurationLong,
     MaterialSnackbarConfiguration configuration = null)
 {
     return(MaterialSnackbar.ShowAsync(message, actionButtonText, msDuration, configuration));
 }
        internal static async Task <bool> ShowAsync(string message, string actionButtonText, int msDuration = DurationLong, MaterialSnackbarConfiguration configuration = null)
        {
            var snackbar = new MaterialSnackbar(message, actionButtonText, msDuration, configuration)
            {
                InputTaskCompletionSource = new TaskCompletionSource <bool>()
            };
            await snackbar.ShowAsync();

            return(await snackbar.InputTaskCompletionSource.Task);
        }
Exemplo n.º 5
0
 public Task <IMaterialModalPage> LoadingSnackbarAsync(
     string message,
     MaterialSnackbarConfiguration configuration = null)
 {
     return(MaterialSnackbar.Loading(message, configuration));
 }
 internal static async Task ShowAsync(string message, int msDuration = 3000, MaterialSnackbarConfiguration configuration = null)
 {
     var snackbar = new MaterialSnackbar(message, null, msDuration, configuration);
     await snackbar.ShowAsync();
 }