a zip code crypto-currency system good for red ONLY

plugin.d.ts 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { Observable } from 'rxjs/Observable';
  2. import { CordovaOptions } from './decorators';
  3. export declare const ERR_CORDOVA_NOT_AVAILABLE: {
  4. error: string;
  5. };
  6. export declare const ERR_PLUGIN_NOT_INSTALLED: {
  7. error: string;
  8. };
  9. /**
  10. * Checks if plugin/cordova is available
  11. * @return {boolean | { error: string } }
  12. * @private
  13. */
  14. export declare function checkAvailability(pluginRef: string, methodName?: string, pluginName?: string): boolean | {
  15. error: string;
  16. };
  17. export declare function checkAvailability(pluginObj: any, methodName?: string, pluginName?: string): boolean | {
  18. error: string;
  19. };
  20. /**
  21. * Checks if _objectInstance exists and has the method/property
  22. * @private
  23. */
  24. export declare function instanceAvailability(pluginObj: any, methodName?: string): boolean;
  25. /**
  26. * Wrap the event with an observable
  27. * @private
  28. * @param event even name
  29. * @param element The element to attach the event listener to
  30. * @returns {Observable}
  31. */
  32. export declare function wrapEventObservable(event: string, element?: any): Observable<any>;
  33. /**
  34. * Certain plugins expect the user to override methods in the plugin. For example,
  35. * window.cordova.plugins.backgroundMode.onactivate = function() { ... }.
  36. *
  37. * Unfortunately, this is brittle and would be better wrapped as an Observable. overrideFunction
  38. * does just this.
  39. * @private
  40. */
  41. export declare function overrideFunction(pluginObj: any, methodName: string, args: any[], opts?: any): Observable<any>;
  42. /**
  43. * @private
  44. */
  45. export declare const wrap: (pluginObj: any, methodName: string, opts?: CordovaOptions) => (...args: any[]) => any;
  46. /**
  47. * @private
  48. */
  49. export declare function wrapInstance(pluginObj: any, methodName: string, opts?: any): (...args: any[]) => any;