|
| 1 | +Project: /docs/reference/js/_project.yaml |
| 2 | +Book: /docs/reference/_book.yaml |
| 3 | +page_type: reference |
| 4 | + |
| 5 | +{% comment %} |
| 6 | +DO NOT EDIT THIS FILE! |
| 7 | +This is generated by the JS SDK team, and any local changes will be |
| 8 | +overwritten. Changes should be made in the source code at |
| 9 | +https://github.com/firebase/firebase-js-sdk |
| 10 | +{% endcomment %} |
| 11 | + |
| 12 | +# DataConnect class |
| 13 | +Class representing Firebase Data Connect |
| 14 | + |
| 15 | +<b>Signature:</b> |
| 16 | + |
| 17 | +```typescript |
| 18 | +export declare class DataConnect |
| 19 | +``` |
| 20 | + |
| 21 | +## Constructors |
| 22 | + |
| 23 | +| Constructor | Modifiers | Description | |
| 24 | +| --- | --- | --- | |
| 25 | +| [(constructor)(app, dataConnectOptions, \_authProvider, \_appCheckProvider)](./data-connect.dataconnect.md#dataconnectconstructor) | | Constructs a new instance of the <code>DataConnect</code> class | |
| 26 | + |
| 27 | +## Properties |
| 28 | + |
| 29 | +| Property | Modifiers | Type | Description | |
| 30 | +| --- | --- | --- | --- | |
| 31 | +| [app](./data-connect.dataconnect.md#dataconnectapp) | | [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) | | |
| 32 | +| [isEmulator](./data-connect.dataconnect.md#dataconnectisemulator) | | boolean | | |
| 33 | + |
| 34 | +## Methods |
| 35 | + |
| 36 | +| Method | Modifiers | Description | |
| 37 | +| --- | --- | --- | |
| 38 | +| [enableEmulator(transportOptions)](./data-connect.dataconnect.md#dataconnectenableemulator) | | | |
| 39 | +| [getSettings()](./data-connect.dataconnect.md#dataconnectgetsettings) | | | |
| 40 | +| [setInitialized()](./data-connect.dataconnect.md#dataconnectsetinitialized) | | | |
| 41 | + |
| 42 | +## DataConnect.(constructor) |
| 43 | + |
| 44 | +Constructs a new instance of the `DataConnect` class |
| 45 | + |
| 46 | +<b>Signature:</b> |
| 47 | + |
| 48 | +```typescript |
| 49 | +constructor(app: FirebaseApp, dataConnectOptions: DataConnectOptions, _authProvider: Provider<FirebaseAuthInternalName>, _appCheckProvider: Provider<AppCheckInternalComponentName>); |
| 50 | +``` |
| 51 | + |
| 52 | +#### Parameters |
| 53 | + |
| 54 | +| Parameter | Type | Description | |
| 55 | +| --- | --- | --- | |
| 56 | +| app | [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) | | |
| 57 | +| dataConnectOptions | [DataConnectOptions](./data-connect.dataconnectoptions.md#dataconnectoptions_interface) | | |
| 58 | +| \_authProvider | Provider<FirebaseAuthInternalName> | | |
| 59 | +| \_appCheckProvider | Provider<AppCheckInternalComponentName> | | |
| 60 | + |
| 61 | +## DataConnect.app |
| 62 | + |
| 63 | +<b>Signature:</b> |
| 64 | + |
| 65 | +```typescript |
| 66 | +readonly app: FirebaseApp; |
| 67 | +``` |
| 68 | + |
| 69 | +## DataConnect.isEmulator |
| 70 | + |
| 71 | +<b>Signature:</b> |
| 72 | + |
| 73 | +```typescript |
| 74 | +isEmulator: boolean; |
| 75 | +``` |
| 76 | + |
| 77 | +## DataConnect.enableEmulator() |
| 78 | + |
| 79 | +<b>Signature:</b> |
| 80 | + |
| 81 | +```typescript |
| 82 | +enableEmulator(transportOptions: TransportOptions): void; |
| 83 | +``` |
| 84 | + |
| 85 | +#### Parameters |
| 86 | + |
| 87 | +| Parameter | Type | Description | |
| 88 | +| --- | --- | --- | |
| 89 | +| transportOptions | [TransportOptions](./data-connect.transportoptions.md#transportoptions_interface) | | |
| 90 | + |
| 91 | +<b>Returns:</b> |
| 92 | + |
| 93 | +void |
| 94 | + |
| 95 | +## DataConnect.getSettings() |
| 96 | + |
| 97 | +<b>Signature:</b> |
| 98 | + |
| 99 | +```typescript |
| 100 | +getSettings(): ConnectorConfig; |
| 101 | +``` |
| 102 | +<b>Returns:</b> |
| 103 | + |
| 104 | +[ConnectorConfig](./data-connect.connectorconfig.md#connectorconfig_interface) |
| 105 | + |
| 106 | +## DataConnect.setInitialized() |
| 107 | + |
| 108 | +<b>Signature:</b> |
| 109 | + |
| 110 | +```typescript |
| 111 | +setInitialized(): void; |
| 112 | +``` |
| 113 | +<b>Returns:</b> |
| 114 | + |
| 115 | +void |
| 116 | + |
0 commit comments