1 | export interface SpinnerDialogIOSOptions {
|
2 | overlayOpacity?: number;
|
3 | textColorRed?: number;
|
4 | textColorGreen?: number;
|
5 | textColorBlue?: number;
|
6 | }
|
7 | /**
|
8 | * @name Spinner Dialog
|
9 | * @description
|
10 | * @usage
|
11 | * ```typescript
|
12 | * import { SpinnerDialog } from 'ionic-native';
|
13 | *
|
14 | *
|
15 | * SpinnerDialog.show();
|
16 | *
|
17 | * SpinnerDialog.hide();
|
18 | * ```
|
19 | * @interfaces
|
20 | * SpinnerDialogIOSOptions
|
21 | */
|
22 | export declare class SpinnerDialog {
|
23 | /**
|
24 | * Shows the spinner dialog
|
25 | * @param title {string} Spinner title (shows on Android only)
|
26 | * @param message {string} Spinner message
|
27 | * @param cancelCallback {boolean|function} Set to true to set spinner not cancelable. Or provide a function to call when the user cancels the spinner.
|
28 | * @param iOSOptions {object} Options for iOS only
|
29 | */
|
30 | static show(title?: string, message?: string, cancelCallback?: any, iOSOptions?: SpinnerDialogIOSOptions): void;
|
31 | /**
|
32 | * Hides the spinner dialog if visible
|
33 | */
|
34 | static hide(): void;
|
35 | }
|