123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { App } from '../app/app';
  2. import { Config } from '../../config/config';
  3. import { LoadingOptions } from './loading-options';
  4. import { NavOptions } from '../../navigation/nav-util';
  5. import { ViewController } from '../../navigation/view-controller';
  6. /**
  7. * @hidden
  8. */
  9. export declare class Loading extends ViewController {
  10. private _app;
  11. constructor(app: App, opts: LoadingOptions, config: Config);
  12. /**
  13. * @hidden
  14. */
  15. getTransitionName(direction: string): string;
  16. /**
  17. * @param {string} content sets the html content for the loading indicator.
  18. */
  19. setContent(content: string): Loading;
  20. /**
  21. * @param {string} spinner sets the name of the SVG spinner for the loading indicator.
  22. */
  23. setSpinner(spinner: string): Loading;
  24. /**
  25. * @param {string} cssClass sets additional classes for custom styles, separated by spaces.
  26. */
  27. setCssClass(cssClass: string): Loading;
  28. /**
  29. * @param {boolean} showBackdrop sets whether to show the backdrop.
  30. */
  31. setShowBackdrop(showBackdrop: boolean): Loading;
  32. /**
  33. * @param {number} dur how many milliseconds to wait before hiding the indicator.
  34. */
  35. setDuration(dur: number): Loading;
  36. /**
  37. * Present the loading instance.
  38. *
  39. * @param {NavOptions} [navOptions={}] Nav options to go with this transition.
  40. * @returns {Promise} Returns a promise which is resolved when the transition has completed.
  41. */
  42. present(navOptions?: NavOptions): Promise<any>;
  43. /**
  44. * Dismiss all loading components which have been presented.
  45. */
  46. dismissAll(): void;
  47. }