Skip to content

Commit

Permalink
feat(plugin): add Microdoft App Center Analytics plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsogl committed Apr 4, 2018
1 parent 84c9bfb commit 7a5bee9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/@ionic-native/plugins/app-center-analytics/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';

export interface StringMap {
[s: string]: string;
}

/**
* @name App Center Analytics
* @description
Expand All @@ -27,6 +31,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
* });
*
* ```
* @interfaces
* StringMap
*/
@Plugin({
pluginName: 'AppCenterAnalytics',
Expand All @@ -41,14 +47,11 @@ export class AppCenterAnalytics extends IonicNativePlugin {
/**
* Tracks an custom event
* @param {string} eventName Event name
* @param {{[s:string]:string}} properties Event properties
* @param {StringMap} properties Event properties
* @returns {Promise<void>}
*/
@Cordova()
trackEvent(
eventName: string,
properties: { [s: string]: string }
): Promise<void> {
trackEvent(eventName: string, properties: StringMap): Promise<void> {
return;
}

Expand Down

0 comments on commit 7a5bee9

Please sign in to comment.