Back to Firebase Js Sdk

RemoteConfig interface

docs-devsite/remote-config.remoteconfig.md

12.12.12.6 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

RemoteConfig interface

The Firebase Remote Config service interface.

<b>Signature:</b>

typescript
export interface RemoteConfig 

Properties

PropertyTypeDescription
appFirebaseAppThe FirebaseApp this <code>RemoteConfig</code> instance is associated with.
defaultConfig{ [key: string]: string | number | boolean; }Object containing default values for configs.
fetchTimeMillisnumberThe Unix timestamp in milliseconds of the last <i>successful</i> fetch, or negative one if the RemoteConfig instance either hasn't fetched or initialization is incomplete.
lastFetchStatusFetchStatusThe status of the last fetch <i>attempt</i>.
settingsRemoteConfigSettingsDefines configuration for the Remote Config SDK.

RemoteConfig.app

The FirebaseApp this RemoteConfig instance is associated with.

<b>Signature:</b>

typescript
app: FirebaseApp;

RemoteConfig.defaultConfig

Object containing default values for configs.

<b>Signature:</b>

typescript
defaultConfig: {
        [key: string]: string | number | boolean;
    };

RemoteConfig.fetchTimeMillis

The Unix timestamp in milliseconds of the last <i>successful</i> fetch, or negative one if the RemoteConfig instance either hasn't fetched or initialization is incomplete.

<b>Signature:</b>

typescript
fetchTimeMillis: number;

RemoteConfig.lastFetchStatus

The status of the last fetch <i>attempt</i>.

<b>Signature:</b>

typescript
lastFetchStatus: FetchStatus;

RemoteConfig.settings

Defines configuration for the Remote Config SDK.

<b>Signature:</b>

typescript
settings: RemoteConfigSettings;