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
7a5bee914f
commit
b65946b1a8
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user