@@ -35,10 +35,10 @@ import { Observable } from 'rxjs/Observable';
35
35
export class Firebase extends IonicNativePlugin {
36
36
/**
37
37
* Get the device token
38
- * @return {Promise<any> }
38
+ * @return {Promise<null | string> } Note that token will be null if it has not been established yet
39
39
*/
40
40
@Cordova ( )
41
- getToken ( ) : Promise < any > {
41
+ getToken ( ) : Promise < null | string > {
42
42
return ;
43
43
}
44
44
@@ -269,6 +269,44 @@ export class Firebase extends IonicNativePlugin {
269
269
return ;
270
270
}
271
271
272
+ /**
273
+ * Start a trace.
274
+ * @param trace Trace name
275
+ */
276
+ @Cordova ( )
277
+ startTrace ( trace : string ) : Promise < any > {
278
+ return ;
279
+ }
280
+
281
+ /**
282
+ * To count the performance-related events that occur in your app (such as cache hits or retries), add a line of code
283
+ * similar to the following whenever the event occurs, using a string other than retry to name that event if you are
284
+ * counting a different type of event:
285
+ * @param trace Trace name
286
+ * @param counter Counter
287
+ */
288
+ @Cordova ( )
289
+ incrementCounter ( trace : string , counter : string ) : Promise < any > {
290
+ return ;
291
+ }
292
+
293
+ /**
294
+ * Stop the trace
295
+ * @param trace Trace name
296
+ */
297
+ @Cordova ( )
298
+ stopTrace ( trace : string ) : void { }
299
+
300
+ /**
301
+ * Allows the user to enable/disable analytics collection
302
+ * @param {boolean } enabled value to set collection
303
+ * @returns {Promise<any> }
304
+ */
305
+ @Cordova ( )
306
+ setAnalyticsCollectionEnabled ( enabled : boolean ) : Promise < any > {
307
+ return ;
308
+ }
309
+
272
310
/**
273
311
* Sends an SMS to the user with the SMS verification code and returns the Verification ID required to sign in using phone authentication
274
312
* @param {string } phoneNumber
@@ -298,14 +336,4 @@ export class Firebase extends IonicNativePlugin {
298
336
) : Promise < any > {
299
337
return ;
300
338
}
301
-
302
- /**
303
- * Allows the user to enable/disable analytics collection
304
- * @param {boolean } enabled value to set collection
305
- * @returns {Promise<any> }
306
- */
307
- @Cordova ( )
308
- setAnalyticsCollectionEnabled ( enabled : boolean ) : Promise < any > {
309
- return ;
310
- }
311
339
}
0 commit comments