public final class

ServerConfig

extends Object
java.lang.Object
   ↳ com.google.firebase.remoteconfig.ServerConfig

Class Overview

Represents the configuration produced by evaluating a server template.

Summary

Public Methods
boolean getBoolean(String key)
Gets the value for the given key as a boolean.Convenience method for calling serverConfig.getValue(key).asBoolean().
double getDouble(String key)
Gets the value for the given key as double.Convenience method for calling serverConfig.getValue(key).asDouble().
long getLong(String key)
Gets the value for the given key as long.Convenience method for calling serverConfig.getValue(key).asLong().
String getString(String key)
Gets the value for the given key as a string.
ValueSource getValueSource(String key)
Gets the ValueSource for the given key.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean getBoolean (String key)

Gets the value for the given key as a boolean.Convenience method for calling serverConfig.getValue(key).asBoolean().

Parameters
key The name of the parameter.
Returns
  • config value for the given key as boolean.

public double getDouble (String key)

Gets the value for the given key as double.Convenience method for calling serverConfig.getValue(key).asDouble().

Parameters
key The name of the parameter.
Returns
  • config value for the given key as double.

public long getLong (String key)

Gets the value for the given key as long.Convenience method for calling serverConfig.getValue(key).asLong().

Parameters
key The name of the parameter.
Returns
  • config value for the given key as long.

public String getString (String key)

Gets the value for the given key as a string. Convenience method for calling serverConfig.getValue(key).asString().

Parameters
key The name of the parameter.
Returns
  • config value for the given key as string.

public ValueSource getValueSource (String key)

Gets the ValueSource for the given key.

Parameters
key The name of the parameter.
Returns
  • config value source for the given key.