forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cordova-plugin-spinner.d.ts
31 lines (26 loc) · 1.33 KB
/
cordova-plugin-spinner.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 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/borisyankov/DefinitelyTyped
declare module 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;