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 7a5bee9 commit b65946b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/@ionic-native/plugins/app-center-analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export interface StringMap {
@Injectable()
export class AppCenterAnalytics extends IonicNativePlugin {
/**
* Tracks an custom event
* Tracks an custom event.
* You can send up to 200 distinct event names. Also, there is a maximum limit of 256 characters per event name
* and 64 characters per event property name and event property value.
* @param {string} eventName Event name
* @param {StringMap} properties Event properties
* @returns {Promise<void>}
Expand All @@ -56,7 +58,7 @@ export class AppCenterAnalytics extends IonicNativePlugin {
}

/**
* Returns true if anayltics are enabled and false if not
* Check if App Center Analytics is enabled
* @returns {Promise<boolean>}
*/
@Cordova()
Expand All @@ -65,12 +67,12 @@ export class AppCenterAnalytics extends IonicNativePlugin {
}

/**
* Enables or disables analytics
* @param {boolean} value Set value
* Enable or disable App Center Analytics at runtime
* @param {boolean} shouldEnable Set value
* @returns {Promise<void>}
*/
@Cordova()
setEnabled(value: boolean): Promise<void> {
setEnabled(shouldEnable: boolean): Promise<void> {
return;
}
}

0 comments on commit b65946b

Please sign in to comment.