| java.lang.Object | |
| ↳ | com.google.firebase.remoteconfig.FirebaseRemoteConfig |
This class is the entry point for all server-side Firebase Remote Config actions.
You can get an instance of FirebaseRemoteConfig via getInstance(FirebaseApp),
and then use it to manage Remote Config templates.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Template |
forcePublishTemplate(Template template)
Force publishes a Remote Config template.
| ||||||||||
| ApiFuture<Template> |
forcePublishTemplateAsync(Template template)
Similar to
forcePublishTemplate(Template) but performs the operation
asynchronously. | ||||||||||
| synchronized static FirebaseRemoteConfig |
getInstance(FirebaseApp app)
Gets the
FirebaseRemoteConfig instance for the specified FirebaseApp. | ||||||||||
| static FirebaseRemoteConfig |
getInstance()
Gets the
FirebaseRemoteConfig instance for the default FirebaseApp. | ||||||||||
| Template |
getTemplate()
Gets the current active version of the Remote Config template.
| ||||||||||
| ApiFuture<Template> |
getTemplateAsync()
Similar to
getTemplate() but performs the operation asynchronously. | ||||||||||
| Template |
getTemplateAtVersion(String versionNumber)
Gets the requested version of the of the Remote Config template.
| ||||||||||
| Template |
getTemplateAtVersion(long versionNumber)
Gets the requested version of the of the Remote Config template.
| ||||||||||
| ApiFuture<Template> |
getTemplateAtVersionAsync(long versionNumber)
Similar to
getTemplateAtVersion(long) but performs the operation
asynchronously. | ||||||||||
| ApiFuture<Template> |
getTemplateAtVersionAsync(String versionNumber)
Similar to
getTemplateAtVersion(String) but performs the operation
asynchronously. | ||||||||||
| ListVersionsPage |
listVersions()
Gets a list of Remote Config template versions that have been published, sorted in reverse
chronological order.
| ||||||||||
| ListVersionsPage |
listVersions(ListVersionsOptions options)
Gets a list of Remote Config template versions that have been published, sorted in reverse
chronological order.
| ||||||||||
| ApiFuture<ListVersionsPage> |
listVersionsAsync()
Similar to
listVersions() but performs the operation
asynchronously. | ||||||||||
| ApiFuture<ListVersionsPage> |
listVersionsAsync(ListVersionsOptions options)
Similar to
listVersions(ListVersionsOptions) but performs the operation
asynchronously. | ||||||||||
| Template |
publishTemplate(Template template)
Publishes a Remote Config template.
| ||||||||||
| ApiFuture<Template> |
publishTemplateAsync(Template template)
Similar to
publishTemplate(Template) but performs the operation
asynchronously. | ||||||||||
| Template |
rollback(String versionNumber)
Rolls back a project's published Remote Config template to the specified version.
| ||||||||||
| Template |
rollback(long versionNumber)
Rolls back a project's published Remote Config template to the specified version.
| ||||||||||
| ApiFuture<Template> |
rollbackAsync(long versionNumber)
Similar to
rollback(long) but performs the operation
asynchronously. | ||||||||||
| ApiFuture<Template> |
rollbackAsync(String versionNumber)
Similar to
rollback(String) but performs the operation
asynchronously. | ||||||||||
| Template |
validateTemplate(Template template)
Validates a Remote Config template.
| ||||||||||
| ApiFuture<Template> |
validateTemplateAsync(Template template)
Similar to
validateTemplate(Template) but performs the operation
asynchronously. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Force publishes a Remote Config template.
This method forces the Remote Config template to be updated without evaluating the ETag values. This approach is not recommended because it risks causing the loss of updates to your Remote Config template if multiple clients are updating the Remote Config template. See ETag usage and forced updates.
| template | The Remote Config template to be forcefully published. |
|---|
Template.| FirebaseRemoteConfigException | If an error occurs while publishing the template. |
|---|
Similar to forcePublishTemplate(Template) but performs the operation
asynchronously.
| template | The Remote Config template to be forcefully published. |
|---|
ApiFuture that completes with a Template when
the provided template is published.
Gets the FirebaseRemoteConfig instance for the specified FirebaseApp.
FirebaseRemoteConfig instance for the specified FirebaseApp.
Gets the FirebaseRemoteConfig instance for the default FirebaseApp.
FirebaseRemoteConfig instance for the default FirebaseApp.
Gets the current active version of the Remote Config template.
Template.| FirebaseRemoteConfigException | If an error occurs while getting the template. |
|---|
Similar to getTemplate() but performs the operation asynchronously.
ApiFuture that completes with a Template when
the template is available.
Gets the requested version of the of the Remote Config template.
| versionNumber | The version number of the Remote Config template to get. |
|---|
Template.| FirebaseRemoteConfigException | If an error occurs while getting the template. |
|---|
Gets the requested version of the of the Remote Config template.
| versionNumber | The version number of the Remote Config template to get. |
|---|
Template.| FirebaseRemoteConfigException | If an error occurs while getting the template. |
|---|
Similar to getTemplateAtVersion(long) but performs the operation
asynchronously.
| versionNumber | The version number of the Remote Config template to get. |
|---|
ApiFuture that completes with a Template when
the requested template is available.
Similar to getTemplateAtVersion(String) but performs the operation
asynchronously.
| versionNumber | The version number of the Remote Config template to get. |
|---|
ApiFuture that completes with a Template when
the requested template is available.
Gets a list of Remote Config template versions that have been published, sorted in reverse chronological order. Only the last 300 versions are stored.
ListVersionsPage instance.| FirebaseRemoteConfigException | If an error occurs while retrieving versions list. |
|---|
Gets a list of Remote Config template versions that have been published, sorted in reverse chronological order. Only the last 300 versions are stored.
| options | List version options. |
|---|
ListVersionsPage instance.| FirebaseRemoteConfigException | If an error occurs while retrieving versions list. |
|---|
Similar to listVersions() but performs the operation
asynchronously.
ListVersionsPage instance.
Similar to listVersions(ListVersionsOptions) but performs the operation
asynchronously.
| options | List version options. |
|---|
ListVersionsPage instance.
Publishes a Remote Config template.
| template | The Remote Config template to be published. |
|---|
Template.| FirebaseRemoteConfigException | If an error occurs while publishing the template. |
|---|
Similar to publishTemplate(Template) but performs the operation
asynchronously.
| template | The Remote Config template to be published. |
|---|
ApiFuture that completes with a Template when
the provided template is published.
Rolls back a project's published Remote Config template to the specified version.
A rollback is equivalent to getting a previously published Remote Config template and re-publishing it using a force update.
| versionNumber | The version number of the Remote Config template to roll back to. The specified version number must be lower than the current version number, and not have been deleted due to staleness. Only the last 300 versions are stored. All versions that correspond to non-active Remote Config templates (that is, all except the template that is being fetched by clients) are also deleted if they are more than 90 days old. |
|---|
Template.| FirebaseRemoteConfigException | If an error occurs while rolling back the template. |
|---|
Rolls back a project's published Remote Config template to the specified version.
A rollback is equivalent to getting a previously published Remote Config template and re-publishing it using a force update.
| versionNumber | The version number of the Remote Config template to roll back to. The specified version number must be lower than the current version number, and not have been deleted due to staleness. Only the last 300 versions are stored. All versions that correspond to non-active Remote Config templates (that is, all except the template that is being fetched by clients) are also deleted if they are more than 90 days old. |
|---|
Template.| FirebaseRemoteConfigException | If an error occurs while rolling back the template. |
|---|
Similar to rollback(long) but performs the operation
asynchronously.
| versionNumber | The version number of the Remote Config template to roll back to. |
|---|
ApiFuture that completes with a Template once
the rollback operation is successful.
Similar to rollback(String) but performs the operation
asynchronously.
| versionNumber | The version number of the Remote Config template to roll back to. |
|---|
ApiFuture that completes with a Template once
the rollback operation is successful.
Validates a Remote Config template.
| template | The Remote Config template to be validated. |
|---|
Template.| FirebaseRemoteConfigException | If an error occurs while validating the template. |
|---|
Similar to validateTemplate(Template) but performs the operation
asynchronously.
| template | The Remote Config template to be validated. |
|---|
ApiFuture that completes with a Template when
the provided template is validated.