File tree Expand file tree Collapse file tree 7 files changed +22
-6
lines changed
installations-exp/src/api Expand file tree Collapse file tree 7 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 7
7
import { FirebaseApp } from ' @firebase/app-types-exp' ;
8
8
import { FirebaseInstallations } from ' @firebase/installations-types-exp' ;
9
9
10
- // @public (undocumented)
10
+ // @public
11
11
export function deleteInstallations(installations : FirebaseInstallations ): Promise <void >;
12
12
13
- // @public (undocumented)
13
+ // @public
14
14
export function getId(installations : FirebaseInstallations ): Promise <string >;
15
15
16
- // @public (undocumented)
16
+ // @public
17
17
export function getInstallations(app : FirebaseApp ): FirebaseInstallations ;
18
18
19
- // @public (undocumented)
19
+ // @public
20
20
export function getToken(installations : FirebaseInstallations , forceRefresh ? : boolean ): Promise <string >;
21
21
22
- // @public (undocumented)
22
+ // @public
23
23
export type IdChangeCallbackFn = (installationId : string ) => void ;
24
24
25
- // @public (undocumented)
25
+ // @public
26
26
export type IdChangeUnsubscribeFn = () => void ;
27
27
28
28
// @public
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
23
23
import { FirebaseInstallations } from '@firebase/installations-types-exp' ;
24
24
25
25
/**
26
+ * Deletes the Firebase Installation and all associated data.
27
+ *
26
28
* @public
27
29
*/
28
30
export async function deleteInstallations (
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ import { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
21
21
import { FirebaseInstallations } from '@firebase/installations-types-exp' ;
22
22
23
23
/**
24
+ * Creates a Firebase Installation if there isn't one for the app and
25
+ * returns the Installation ID.
26
+ *
24
27
* @public
25
28
*/
26
29
export async function getId (
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ import { FirebaseInstallations } from '@firebase/installations-types-exp';
20
20
import { _getProvider } from '@firebase/app-exp' ;
21
21
22
22
/**
23
+ * Returns a Firebase Installation instance for the given app.
24
+ *
23
25
* @public
24
26
*/
25
27
export function getInstallations ( app : FirebaseApp ) : FirebaseInstallations {
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ import {
24
24
import { FirebaseInstallations } from '@firebase/installations-types-exp' ;
25
25
26
26
/**
27
+ *
28
+ * Returns an authentication token for the current Firebase Installation.
29
+ *
27
30
* @public
28
31
*/
29
32
export async function getToken (
Original file line number Diff line number Diff line change @@ -20,10 +20,14 @@ import { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
20
20
import { FirebaseInstallations } from '@firebase/installations-types-exp' ;
21
21
22
22
/**
23
+ * An user defined callback function that takes action when Installations ID changes.
24
+ *
23
25
* @public
24
26
*/
25
27
export type IdChangeCallbackFn = ( installationId : string ) => void ;
26
28
/**
29
+ * An unsubscribe function that will remove the onIdChange callback when called.
30
+ *
27
31
* @public
28
32
*/
29
33
export type IdChangeUnsubscribeFn = ( ) => void ;
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
/**
19
+ * A Firebase Installation instance which is a required argument for all Firebase Installations operations.
20
+ *
19
21
* @public
20
22
*/
21
23
export interface FirebaseInstallations { }
You can’t perform that action at this time.
0 commit comments