UNPKG

ionic-native

Version:

Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support

36 lines (35 loc) 1.04 kB
export interface SpinnerDialogIOSOptions { overlayOpacity?: number; textColorRed?: number; textColorGreen?: number; textColorBlue?: number; } /** * @name Spinner Dialog * @description * @usage * ```typescript * import { SpinnerDialog } from 'ionic-native'; * * * SpinnerDialog.show(); * * SpinnerDialog.hide(); * ``` * @interfaces * SpinnerDialogIOSOptions */ export declare class SpinnerDialog { /** * Shows the spinner dialog * @param title {string} Spinner title (shows on Android only) * @param message {string} Spinner message * @param cancelCallback {boolean|function} Set to true to set spinner not cancelable. Or provide a function to call when the user cancels the spinner. * @param iOSOptions {object} Options for iOS only */ static show(title?: string, message?: string, cancelCallback?: any, iOSOptions?: SpinnerDialogIOSOptions): void; /** * Hides the spinner dialog if visible */ static hide(): void; }