diff --git a/src/@ionic-native/plugins/janalytics/index.ts b/src/@ionic-native/plugins/janalytics/index.ts new file mode 100644 index 000000000..a90f409ef --- /dev/null +++ b/src/@ionic-native/plugins/janalytics/index.ts @@ -0,0 +1,95 @@ +import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + +/** + * @name jAnalytics + * @description + * This plugin does something + * + * @usage + * ```typescript + * import { JAnalytics } from '@ionic-native/JAnalytics'; + * + * + * constructor(private jAnalytics: JAnalytics) { } + * + * ... + * + * + * this.jAnalytics.functionName('Hello', 123) + * .then((res: any) => console.log(res)) + * .catch((error: any) => console.error(error)); + * + * ``` + */ +@Plugin({ + pluginName: 'JAnalytics', + plugin: 'cordova-plugin-janalytics', + pluginRef: 'JAnalytics', + repo: 'https://github.com/jpush/cordova-plugin-janalytics', + install: + 'ionic cordova plugin add cordova-plugin-janalytics --variable APP_KEY=YOUR_APP_KEY', + installVariables: ['APP_KEY'], + platforms: ['Android', 'iOS'] +}) +@Injectable() +export class JAnalytics extends IonicNativePlugin { + /** + * This function does something + * @return {Promise} Returns a promise that resolves when something happens + */ + @Cordova() + init(): Promise { + return; + } + + @Cordova() + initCrashHandler(): Promise { + return; + } + + @Cordova() + stopCrashHandler(): Promise { + return; + } + + @Cordova() + onPageStart(params: any): Promise { + return; + } + + @Cordova() + onPageEnd(params: any): Promise { + return; + } + + @Cordova() + addCountEvent(params: any): Promise { + return; + } + + @Cordova() + addCalculateEvent(params: any): Promise { + return; + } + + @Cordova() + addLoginEvent(params: any): Promise { + return; + } + + @Cordova() + addRegisterEvent(params: any): Promise { + return; + } + + @Cordova() + addBrowseEvent(params: any): Promise { + return; + } + + @Cordova() + addPurchaseEvent(params: any): Promise { + return; + } +}