mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
feat(plugin): add Microdoft App Center Analytics plugin
This commit is contained in:
parent
84c9bfbca3
commit
7a5bee914f
@ -1,6 +1,10 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
|
export interface StringMap {
|
||||||
|
[s: string]: string;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name App Center Analytics
|
* @name App Center Analytics
|
||||||
* @description
|
* @description
|
||||||
@ -27,6 +31,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
|||||||
* });
|
* });
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
|
* @interfaces
|
||||||
|
* StringMap
|
||||||
*/
|
*/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
pluginName: 'AppCenterAnalytics',
|
pluginName: 'AppCenterAnalytics',
|
||||||
@ -41,14 +47,11 @@ export class AppCenterAnalytics extends IonicNativePlugin {
|
|||||||
/**
|
/**
|
||||||
* Tracks an custom event
|
* Tracks an custom event
|
||||||
* @param {string} eventName Event name
|
* @param {string} eventName Event name
|
||||||
* @param {{[s:string]:string}} properties Event properties
|
* @param {StringMap} properties Event properties
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
trackEvent(
|
trackEvent(eventName: string, properties: StringMap): Promise<void> {
|
||||||
eventName: string,
|
|
||||||
properties: { [s: string]: string }
|
|
||||||
): Promise<void> {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user