@@ -35,10 +35,10 @@ import { Observable } from 'rxjs/Observable';
3535export class Firebase extends IonicNativePlugin {
3636 /**
3737 * 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
3939 */
4040 @Cordova ( )
41- getToken ( ) : Promise < any > {
41+ getToken ( ) : Promise < null | string > {
4242 return ;
4343 }
4444
@@ -269,6 +269,44 @@ export class Firebase extends IonicNativePlugin {
269269 return ;
270270 }
271271
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+
272310 /**
273311 * Sends an SMS to the user with the SMS verification code and returns the Verification ID required to sign in using phone authentication
274312 * @param {string } phoneNumber
@@ -298,14 +336,4 @@ export class Firebase extends IonicNativePlugin {
298336 ) : Promise < any > {
299337 return ;
300338 }
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- }
311339}
0 commit comments