UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

32 lines (26 loc) 1.37 kB
// Type definitions for cordova-plugin-spinner 1.0.0 // Project: https://github.com/Justin-Credible/cordova-plugin-spinner // Definitions by: Justin Unterreiner <https://github.com/Justin-Credible> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace SpinnerPlugin { interface SpinnerPluginStatic { /** * Blocks user input using an indeterminate spinner. * * An optional label can be shown below the spinner. * * @param labelText The optional value to show in a label. * @param successCallback The success callback for this asynchronous function. * @param failureCallback The failure callback for this asynchronous function; receives an error string. */ activityStart(labelText?: string, successCallback?: () => void, failureCallback?: (error: string) => void): void; /** * Allows user input by hiding the indeterminate spinner. * * @param successCallback The success callback for this asynchronous function. * @param failureCallback The failure callback for this asynchronous function; receives an error string. */ activityStop(successCallback?: () => void, failureCallback?: (error: string) => void): void; } } declare var SpinnerPlugin: SpinnerPlugin.SpinnerPluginStatic;