@@ -28,7 +28,6 @@ import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-pl
28
28
export class Webengage extends AwesomeCordovaNativePlugin {
29
29
/**
30
30
* Initializes WebEngage SDK
31
- *
32
31
* @param {any } [config]
33
32
* @returns {Promise<any> }
34
33
*/
@@ -37,9 +36,17 @@ export class Webengage extends AwesomeCordovaNativePlugin {
37
36
return ;
38
37
}
39
38
39
+ /**
40
+ * Starts Tracking Google Advertising ID
41
+ * @returns {Promise<any> }
42
+ */
43
+ @Cordova ( )
44
+ startGAIDTracking ( ) : Promise < any > {
45
+ return ;
46
+ }
47
+
40
48
/**
41
49
* Sets WebEngage SDK configuration
42
- *
43
50
* @param {string } key
44
51
* @param {any } value
45
52
* @returns {Promise<any> }
@@ -51,7 +58,6 @@ export class Webengage extends AwesomeCordovaNativePlugin {
51
58
52
59
/**
53
60
* Tracks event
54
- *
55
61
* @param {string } eventName
56
62
* @param {any } [attributes]
57
63
* @returns {Promise<any> }
@@ -63,7 +69,6 @@ export class Webengage extends AwesomeCordovaNativePlugin {
63
69
64
70
/**
65
71
* Tracks screen
66
- *
67
72
* @param {string } eventName
68
73
* @param screenName
69
74
* @param {any } [screenData]
@@ -87,7 +92,6 @@ export class Webengage extends AwesomeCordovaNativePlugin {
87
92
export class WebengageUser extends AwesomeCordovaNativePlugin {
88
93
/**
89
94
* Logs user in
90
- *
91
95
* @param {string } userId
92
96
* @returns {Promise<any> }
93
97
*/
@@ -98,7 +102,6 @@ export class WebengageUser extends AwesomeCordovaNativePlugin {
98
102
99
103
/**
100
104
* Logs user out
101
- *
102
105
* @returns {Promise<any> }
103
106
*/
104
107
@Cordova ( )
@@ -108,7 +111,6 @@ export class WebengageUser extends AwesomeCordovaNativePlugin {
108
111
109
112
/**
110
113
* Sets user attribute
111
- *
112
114
* @param {string } key
113
115
* @param {any } value
114
116
* @returns {Promise<any> }
@@ -117,6 +119,27 @@ export class WebengageUser extends AwesomeCordovaNativePlugin {
117
119
setAttribute ( key : string , value : any ) : Promise < any > {
118
120
return ;
119
121
}
122
+
123
+ /**
124
+ * Sets Device optIn
125
+ * @param {boolean } optIn
126
+ * @returns {Promise<any> }
127
+ */
128
+ @Cordova ( )
129
+ setDevicePushOptIn ( optIn : boolean ) : Promise < any > {
130
+ return ;
131
+ }
132
+
133
+ /**
134
+ * Sets user attribute
135
+ * @param {string } channel
136
+ * @param {any } optIn
137
+ * @returns {Promise<any> }
138
+ */
139
+ @Cordova ( )
140
+ setUserOptIn ( channel : string , optIn : any ) : Promise < any > {
141
+ return ;
142
+ }
120
143
}
121
144
122
145
/**
@@ -131,7 +154,6 @@ export class WebengageUser extends AwesomeCordovaNativePlugin {
131
154
export class WebengagePush extends AwesomeCordovaNativePlugin {
132
155
/**
133
156
* Callback function is invoked when a push notification is clicked
134
- *
135
157
* @param {any } callback
136
158
* @returns {Promise<any> }
137
159
*/
@@ -142,7 +164,6 @@ export class WebengagePush extends AwesomeCordovaNativePlugin {
142
164
143
165
/**
144
166
* Sets push notification configuration
145
- *
146
167
* @param {string } key
147
168
* @param {any } value
148
169
* @returns {Promise<any> }
@@ -165,7 +186,6 @@ export class WebengagePush extends AwesomeCordovaNativePlugin {
165
186
export class WebengageNotification extends AwesomeCordovaNativePlugin {
166
187
/**
167
188
* Callback function is invoked when a in-app notification is shown
168
- *
169
189
* @param {any } callback
170
190
* @returns {Promise<any> }
171
191
*/
@@ -174,9 +194,18 @@ export class WebengageNotification extends AwesomeCordovaNativePlugin {
174
194
return ;
175
195
}
176
196
197
+ /**
198
+ * Callback function is invoked before a in-app notification is shown
199
+ * @param {any } callback
200
+ * @returns {Promise<any> }
201
+ */
202
+ @Cordova ( )
203
+ onPrepared ( callback : any ) : Promise < any > {
204
+ return ;
205
+ }
206
+
177
207
/**
178
208
* Callback function is invoked when a in-app notification is clicked
179
- *
180
209
* @param {any } callback
181
210
* @returns {Promise<any> }
182
211
*/
@@ -187,7 +216,6 @@ export class WebengageNotification extends AwesomeCordovaNativePlugin {
187
216
188
217
/**
189
218
* Callback function is invoked when a in-app notification is dismissed
190
- *
191
219
* @param {any } callback
192
220
* @returns {Promise<any> }
193
221
*/
@@ -198,7 +226,6 @@ export class WebengageNotification extends AwesomeCordovaNativePlugin {
198
226
199
227
/**
200
228
* Sets in-app notification configuration
201
- *
202
229
* @param {string } key
203
230
* @param {any } value
204
231
* @returns {Promise<any> }
0 commit comments