feat(plugin): add Microdoft App Center Analytics plugin

This commit is contained in:
Daniel Sogl 2018-04-04 17:42:30 +02:00 committed by GitHub
parent 7a5bee914f
commit b65946b1a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,9 @@ export interface StringMap {
@Injectable() @Injectable()
export class AppCenterAnalytics extends IonicNativePlugin { 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 {string} eventName Event name
* @param {StringMap} properties Event properties * @param {StringMap} properties Event properties
* @returns {Promise<void>} * @returns {Promise<void>}
@ -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>} * @returns {Promise<boolean>}
*/ */
@Cordova() @Cordova()
@ -65,12 +67,12 @@ export class AppCenterAnalytics extends IonicNativePlugin {
} }
/** /**
* Enables or disables analytics * Enable or disable App Center Analytics at runtime
* @param {boolean} value Set value * @param {boolean} shouldEnable Set value
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
@Cordova() @Cordova()
setEnabled(value: boolean): Promise<void> { setEnabled(shouldEnable: boolean): Promise<void> {
return; return;
} }
} }