mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
fix(firebase-analytics): add sync
option for all methods
This commit is contained in:
parent
f11be24f74
commit
42fd1f2400
@ -43,7 +43,7 @@ export class FirebaseAnalytics extends IonicNativePlugin {
|
||||
* @param params {any} Some param to configure something
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova()
|
||||
@Cordova({ sync: true })
|
||||
logEvent(name: string, params: any): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
@ -52,7 +52,7 @@ export class FirebaseAnalytics extends IonicNativePlugin {
|
||||
* @param id {string} The user ID
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova()
|
||||
@Cordova({ sync: true })
|
||||
setUserId(id: string): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
@ -62,7 +62,7 @@ export class FirebaseAnalytics extends IonicNativePlugin {
|
||||
* @param value {string} The property value
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova()
|
||||
@Cordova({ sync: true })
|
||||
setUserProperty(name: string, value: string): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
@ -70,7 +70,7 @@ export class FirebaseAnalytics extends IonicNativePlugin {
|
||||
* @param enabled {boolean}
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova()
|
||||
@Cordova({ sync: true })
|
||||
setEnabled(enabled: boolean): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
@ -79,7 +79,7 @@ export class FirebaseAnalytics extends IonicNativePlugin {
|
||||
* @param name {string} The name of the screen
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova()
|
||||
@Cordova({ sync: true })
|
||||
setCurrentScreen(name: string): Promise<any> { return; }
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user