feat(firebase-x): add missing methods, parameter (#3273)

* feat(firebase-x): add colletion enable methods

add setCrashlyticsCollectionEnabled(), setPerformanceCollectionEnabled()

* feat(firebase-x): add parameter to logError

Add an optional stackTrace parameter to Crashlytics logError()

* fixed whitespace errors
This commit is contained in:
kodolok 2020-01-03 19:39:58 +01:00 committed by Daniel Sogl
parent 8764440087
commit e55a1e1117

View File

@ -302,6 +302,26 @@ export class FirebaseX extends IonicNativePlugin {
return;
}
/**
* Enable/disable Crashlytics collection.
* @param {boolean} enabled
* @returns {Promise<any>}
*/
@Cordova()
setCrashlyticsCollectionEnabled(enabled: boolean): Promise<any> {
return;
}
/**
* Enable/disable performance collection.
* @param {boolean} enabled
* @returns {Promise<any>}
*/
@Cordova()
setPerformanceCollectionEnabled(enabled: boolean): Promise<any> {
return;
}
/**
* Log an event using Analytics
* @param {string} type
@ -387,10 +407,11 @@ export class FirebaseX extends IonicNativePlugin {
* The error message will appear in the Logs section of the non-fatal error event.
* Also logs the error message to the native device console.
* @param {string} error
* @param {object} (optional) a stack trace generated by stacktrace.js
* @return {Promise<any>}
*/
@Cordova()
logError(error: string): Promise<any> {
logError(error: string, stackTrace?: object): Promise<any> {
return;
}