Example #1
0
 /// <summary>
 /// Creates a new standard overlay that will cover the entire screen.
 /// </summary>
 /// <param name="spinnerColor">The color for the spinner.</param>
 /// <param name="spinnerBackgroundColor">A background color for the spinner if the screen background color is not opaque.</param>
 /// <param name="screenBackgroundColor">The background color for the screen overlay.</param>
 /// <param name="delayInSeconds">The delay, in seconds, before the overlay becomes visible. The default is 0.5 seconds.</param>
 /// <returns>A new overlay to show on top of the current view.</returns>
 public static LoadingOverlay CreateFullScreenOverlay(
     Color spinnerColor,
     Color spinnerBackgroundColor,
     Color screenBackgroundColor,
     float delayInSeconds)
 {
     return
         (new LoadingOverlay(
              LoadingOverlayView.CreateFullScreenOverlay(
                  null,
                  null,
                  Colors.Transparent,
                  spinnerColor,
                  spinnerBackgroundColor,
                  screenBackgroundColor,
                  delayInSeconds)));
 }
Example #2
0
 /// <summary>
 /// Creates a new standard overlay that will cover the entire screen.
 /// </summary>
 /// <param name="progress">Provides progress for the operation the overlay represents.</param>
 /// <param name="progressLabelTheme">A theme for the progress label.</param>
 /// <param name="progressBarColor">The color for the progress bar.</param>
 /// <param name="spinnerColor">The color for the spinner.</param>
 /// <param name="spinnerBackgroundColor">A background color for the spinner if the screen background color is not opaque.</param>
 /// <param name="screenBackgroundColor">The background color for the screen overlay.</param>
 /// <param name="delayInSeconds">The delay, in seconds, before the overlay becomes visible. The default is 0.5 seconds.</param>
 /// <returns>A new overlay to show on top of the current view.</returns>
 public static LoadingOverlay CreateFullScreenOverlay(
     IProgress progress,
     LabelTheme progressLabelTheme,
     Color progressBarColor,
     Color spinnerColor,
     Color spinnerBackgroundColor,
     Color screenBackgroundColor,
     float delayInSeconds)
 {
     return
         (new LoadingOverlay(
              LoadingOverlayView.CreateFullScreenOverlay(
                  progress,
                  progressLabelTheme,
                  progressBarColor,
                  spinnerColor,
                  spinnerBackgroundColor,
                  screenBackgroundColor,
                  delayInSeconds)));
 }